开发者

Need voice recognition without Google dialog box [duplicate]

This question already has answers here: How can I use speech recognition without the annoying dialog in android p开发者_如何学Gohones (4 answers) Closed 9 years ago.

Has anyone found a way to do perform speech recognition without displaying Google's voice recognition dialog box? Can this be suppressed during recognition, or if not, hidden from view? I would still need to be able to initiate the voice capture, detect the silence to let me know the capture is complete, then convert to text.


The RecognitionListener class, as you will see in this post How can I use speech recognition without the annoying dialog in android phones, the RecognitionListener class has some methods called onReadyForSpeech(), onBeginningOfSpeech(), onEndOfSpeech() etc, which basically tell you when the user has started, ended speaking and the recognized result. You can do whatever you want in the process by overriding these methods, either showing a dialog or doing another thing to warn the user he should start speaking.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜