TTS *and* Speech Input simultaneously?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 03:25:23

问题


I noticed that as soon as a voice recognition activity starts, text-to-speech output stops.

I understand the rational: TTS output could be "heard" by the voice recognition engine and interfere with its proper operation.

My question: Is this behavior hard-coded into the system, or can it be modified by a setting or parameter (in the API)?


回答1:


Must the activity simultaneously use recognition and TTS? If the recognition can wait (functionally speaking), force the event to spawn the RecognizerIntent only onUtteranceCompleted

This is pure speculation, but there must be some common feature that can only be used by TTS and recognition one at a time (both apis come from android.speech.*)



来源:https://stackoverflow.com/questions/5480573/tts-and-speech-input-simultaneously

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!