async startRecognize () {
// #ifdef APP-PLUS
let status = await this.checkPermission();
if (status !== 1) {
return;
}
// #endif
// TODO ios 在没有请求过权限之前无法得知是否有相关权限,这种状态下需要直接调用语音,会弹出正在识别的toast
var options = {};
var that = this;
options.continue = true;
options.engine = 'baidu';
that.value = "";
plus.speech.startRecognize(options, function (s) {
console.log(s);
that.value += s;
}, function (e) {
console.log(options);
console.log("语音识别失败:" + e.message);
});
},
语音识别失败:not found engine=baidu
engine 无效 讯飞语音百度都试过了
大杉
解决了吗,是通过什么方案
2023-05-23 18:57