2

我的活动中有 TTS 对象。它绑定到语音引擎并准备好说话。然后我开始其他活动(用于结果)。它进行一些用户交互并返回结果。但是当我尝试使用这个 TTS 时,它说

“[某些 TTS 方法名称] 失败:未绑定到 TTS 引擎”

并且没有任何言语。有没有办法“重新连接到引擎”?

如果有人可以帮助我,我将不胜感激。谢谢!

4

1 回答 1

2

I cannot think of an easy way.

I complicated way to do it would be to use a Service which holds the TTS instance.

Or just re-create a new TextToSpeech in the result Activity. Are you seeing significant slowness if you do this?

于 2012-05-29T16:45:36.603 回答