我已经在 mytts.speak("hi hello hi",parameter,parameter...);
但是单词是连续说的,没有任何间隙或停顿,我想在单词之间提供一些时间间隔以便更清楚。
我怎样才能做到这一点?
最佳答案
如果我正确理解你的问题,this thread 有答案(作者:rushi)。
通过拆分字符串并通过 for 循环遍历 fragment ,只需将延迟添加到 TTS 队列中:
mytts.speak(snippet, QUEUE_ADD, null);
mytts.playSilentUtterance(2000, QUEUE_ADD, null);
关于android - 如何在android中的TTS中的单词之间暂停或间隔,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23494130/