TTS回调:调度完成至1
我创建了一个实现 OnUtteranceCompleteListener 的小型 TTS 应用程序,虽然事情似乎完全按预期工作,但我在 LogCat 上注意到以下内容(每个完整的话语一个):
03-01 20:47:06.436: 详细/TtsService(381):TTS 回调: 发送完成至 1
再次,这似乎是良性的,但我不明白“1”的含义。所有话语的所有此类行都显示“已完成到 1”,即使对于大于 1 的话语 ID。
“1”在此日志中意味着什么?
顺便说一句,此消息不是由我的代码生成的,而是由 TTS 引擎 (Pico) 本身生成的。
I created a small TTS app implementing OnUtteranceCompleteListener and, while things seem to be working exactly as expected, I noticed the following on LogCat (one for each completed utterance):
03-01 20:47:06.436:
VERBOSE/TtsService(381): TTS callback:
dispatch completed to 1
Again, this seems to be benign but I don't understand what '1' means. All such lines for all utterances say "completed to 1", even for utterance IDs that are greater than 1.
What does '1' mean in this log?
BTW, this message is not generated by my code but rather by the TTS engine (Pico) itself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 TTSService。 java 源代码位于 http://eyes-free.googlecode.com 您可以找到函数dispatchUtteranceCompletedCallback():
1是N的当前值,它由mCallbacks.beginBroadcast()的返回值初始化。
beginBroadcast() 是该类的方法RemoteCallbackList 及其文档指出:
这有帮助吗?
Looking at the TTSService.java source code available at http://eyes-free.googlecode.com you can find the function dispatchUtteranceCompletedCallback():
1 is the current value of N, which is initialized by the return value from mCallbacks.beginBroadcast().
beginBroadcast() is a method of the class RemoteCallbackList and its documentation states that it:
Does this help?