Java文本转语音 – 如何让我的文本听起来像是一个问题?

huangapple 未分类评论51阅读模式
英文:

Java TextToSpeech - How do i make my text sound like a question?

问题

我有一个使用TextToSpeech的简单文本转语音应用程序。但是我无法让它听起来像在问问题。

TextToSpeech mTts;
...
String textInString = "Do you want coffee?";
mTts.speak(textInString, TextToSpeech.QUEUE_FLUSH, null);

我的代码完全正常工作。只是我无法让我的“声音”提问。
使用这个库有可能实现吗?
如果不行,有没有任何免费的库可以实现这个功能?

英文:

I have a simple text to speech app using TextToSpeech. I can't get it to sound like it is asking a question.

TextToSpeech mTts;
...
String textInString = "Do you want coffee?";
mTts.speak(textInString, TextToSpeech.QUEUE_FLUSH, null);

My code works perfectly well. I just can't get my "voice" to ask things.
Is it possible using this library?
If not, is there any free library which would?

huangapple
  • 本文由 发表于 2020年4月10日 20:10:18
  • 转载请务必保留本文链接:https://java.coder-hub.com/61139965.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定