2

我正在制作一个英语 - 越南语词典应用程序,请建议如何发音一个英语单词。

我的意思是,是否有任何解决方案:输入:单词+语音->输出:声音?

我已经考虑过 Text-to-Speech,但它需要 Internet 连接,因此它不适用于我的 Dictionary App。

4

1 回答 1

3

如果 tts lib 尚未安装在 sd 卡中,则 TTS 不需要互联网连接,除非第一次。

 TextToSpeech tts = new TextToSpeech(this, this);
 tts.setLanguage(Locale.US);
 tts.speak("Hello..I am TTS", TextToSpeech.QUEUE_ADD, null);

http://developer.android.com/reference/android/speech/tts/TextToSpeech.html

于 2013-01-24T10:05:01.150 回答