ionic 5 cordova语音识别器如何语音发短信?

我正在尝试在开始收听语音时捕获文本,但是我不知道如何实现。

这是我当前拥有的代码:

// Start the recognition process
this.speechRecognition.startListening(options)
  .subscribe(
    (matches: string[]) => {
      console.log(matches);
      this.cd.detectChanges();
      for (let index = 0; index < matches.length; index++) {
        this.texto.push( matches[index] );
      }
      alert('Empezar a escuchar');
      this.cd.detectChanges();
    },(onerror) => {
      console.log('error:',onerror);
      alert('error' + JSON.stringify(onerror));
    }
)  
xiaoxi8892 回答:ionic 5 cordova语音识别器如何语音发短信?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3123010.html

大家都在问