app.json
“plugins”: {
“WechatSI”: {
“version”: “0.0.7”,
“provider”: “wx069ba97219f66d99”
}
}
var plugin = requirePlugin(“WechatSI”)
let manager = plugin.getRecordRecognitionManager()
console.log(manager)
manager.onRecognize = function(res) {
console.log(“current result”, res.result)
}
manager.onStop = function(res) {
console.log(“record file path”, res.tempFilePath)
console.log(“result”, res.result)
console.log(res)
}
manager.onError = function(res) {
console.error(“error msg”, res.msg)
}
manager.start({
duration: 30000,
lang: “zh_CN”
})
上面打印 manager 返回是正常的,但是会一直返回-30001
半个月前一样的代码是可以正常使用的,今天再次使用就一直报这个错误
你好,请参考以下帖子,是否能解决你的问题呢?
微信同声传译,异常识别失败,错误码-30001
https://developers.weixin.qq.com/community/develop/doc/000a48bbbc8670b4a047f10c351000