TTS *和*语音输入同时进行?
我注意到,一旦语音识别活动开始,文本到语音的输出就会停止。
我理解其中的道理:TTS 输出可能会被语音识别引擎“听到”并干扰其正常运行。
我的问题:这种行为是硬编码到系统中的,还是可以通过设置或参数(在 API 中)进行修改?
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)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
活动必须同时使用识别和 TTS 吗?如果识别可以等待(从功能上来说),则强制事件仅生成
RecognizerIntent
onUtteranceCompleted这纯粹是猜测,但一定有一些共同的功能只能被 TTS 和识别一次使用(两个 api 都来自 android.speech。* )
Must the activity simultaneously use recognition and TTS? If the recognition can wait (functionally speaking), force the event to spawn the
RecognizerIntent
only onUtteranceCompletedThis 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.*)