微信同声传译 -30001错误

发布于 6 年前作者 qiang0410320 次浏览最后编辑 6 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

已经获取录音权限了。

initRecord: function () {

wx.stopBackgroundAudio();

let _this = this;

manager.onRecognize = function (res) {

console.log(“current result”, res.result);

if (res.result) {

manager.stop();

console.log(“cu结束识别”)

}

}

// manager.onStart = function(res) {

//   console.log(“cu成功开始录音识别”, res)

// }

manager.onStop = function (res) {

console.log(“cu识别结束事件”)

console.log(“record file path”, res.tempFilePath);

if (res.result) {

console.log(“result”, res.result);

manager.start({

duration: 60000,

lang: “zh_CN”

})

}

}

manager.onError = function (res) {

console.error(“error retcode”, res.retcode)

console.error(“error msg”, res.msg);

}

manager.start({

duration: 60000,

lang: “zh_CN”

})

}

这么调用的时候 安卓机会报30001的错误,请问是什么原因?如何解决?

3 回复
chao58
chao581 楼6 年前

请问您30011怎么解决的啊 极度困扰啊

yong72
yong722 楼6 年前

你好,建议单独使用流式录音接口api 查看下能否正常触发各个录音回调,排查下录音接口的问题https://developers.weixin.qq.com/miniprogram/dev/api/RecorderManager.html

daijun
daijun3 楼4 年前

解决了吗,问题何在,我的也不行了,前段时间还能正常使用,现在凉了,30001状态码