微信小程序 -- 语音识别文字(微信同声传译)

418 阅读1分钟

一、准备工作

第一步:微信同声传译插件地址

[https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wx069ba97219f66d99&token=254541817&lang=zh_CN](url)

第二步:登录微信公众平台设置

image.png

image.png

第三步:uniapp项目中引入(manifest.json)

image.png

"plugins": {
    "WechatSI": {
        "version": "0.3.4",
        "provider": "wx069ba97219f66d99"
    }
}

第四步:在 vue文件中 引入插件,获取全局唯一的语音识别管理器 recordRecoManager