在Android中循环SpeechRecognizer

时间:2015-11-02 09:29:51

标签: android speech-recognition speech-to-text google-speech-api

我会循环我的应用程序的语音识别。 我用这段代码开始识别我的演讲。

http://www.truiton.com/2014/06/android-speech-recognition-without-dialog-custom-activity/

现在,我会在识别文本并将其打印到文本框后重新启动识别,以识别其他文本。 我已经尝试过这个:

toggleButton.setChecked(true);

在endOfSpeech方法上,但没有结果,并且通过窃听语音识别。 有更好的解决方案吗? 提前谢谢。

0 个答案:

没有答案