TTS *和*语音输入同时进行? [英] TTS *and* Speech Input simultaneously?

查看:36
本文介绍了TTS *和*语音输入同时进行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到语音识别活动一开始,文本到语音的输出就会停止.

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

我理解其中的道理:语音识别引擎可能会听到"TTS 输出并干扰其正常运行.

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

我的问题:这种行为是硬编码到系统中的,还是可以通过设置或参数(在 API 中)修改?

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

推荐答案

Activity 是否必须同时使用识别和 TTS?如果识别可以等待(从功能上讲),则强制事件仅生成 RecognizerIntent onUtteranceCompleted

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

纯属猜测,但一定有一些共同的特性,只能被TTS使用,一次只能识别一个(两个api都来自android.speech.*)

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.*)

这篇关于TTS *和*语音输入同时进行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆