// 触摸开始
touchStart: function (e) {
console.log('touchStart', e);
manager.start({
lang: "zh_CN",
format: 'mp3'
});
},
// 触摸结束
touchEnd: function (e) {
console.log('touchEnd', e);
manager.stop();
},
// 实时监测变化调用这些方法
onShow: function (e) {
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)
}
manager.onStart = function (res) {
console.log("成功开始录音识别", res)
}
manager.onError = function (res) {
console.error("error msg", res.msg)
}
},
<button bind:touchstart="touchStart"bind:touchend="touchEnd" type='primary'><text wx:if="{{luStatu}}">松开结束</text> <text wx:else>按住说话 </text></button>
报错:error msg record manager record failed
版本:0.3.3
iOS:12.4.1
你好,能否正常使用流式录音接口