第一步:登陆微信公众平台,侧边栏的设置-----第三方设置-----插件管理----添加插件(搜索–同声传译)
第二步:打开 hbiuider-x,找到当前项目,打开manifest.json,找到源码视图,配置插件
"plugins": {
"WechatSI": {
"version": "0.3.5",
"provider": "wx069ba97219f66d99"
}
}
第三步,页面引入使用
let plugin = requirePlugin("WechatSI");
let manager = plugin.getRecordRecognitionManager();
skvido(){
let _this=this;
plugin.textToSpeech({