plus.speech.startRecognize({
engine: 'iFly',
timeout: 90000000,
continue: true,
userInterface: false,
onstart: function() {
console.log('语音识别开始');
},
onend: function() {
console.log('语音识别结束');
},
onaudiostart: function() {
console.log('录音开始');
},
onaudioend: function() {
console.log('录音结束');
},
onrecognizestart: function() {
console.log('录音识别开始');
},
onrecognizeend: function() {
console.log('录音识别结束');
}
}, function(s) {
console.log(s);
}, function(e) {
mui.toast("语音识别失败:" + e.message);
});
continue,timeout,onaudiostart,onaudioend,onrecognizestart,onrecognizeend参数不起作用
2 个回复
九零年
continue,userInterface,好像都只对百度语音识别有用,对讯飞没效果
熊海
一样,也是无效。uni-app。