【发布时间】:2017-03-02 04:34:54
【问题描述】:
文档https://developer.android.com/reference/android/speech/tts/TextToSpeech.html 有一个方法 setVoice() ,我们可以在其中设置语音对象。
但是当我在我的应用程序中创建一个 TextToSpeech 对象时,我没有得到 setVoice() 方法。
TextToSpeech tts = tts = new TextToSpeech(this, this);
int result = tts.setLanguage(Locale.US); // I get this method
int result1 = tts.setVoice(); // I dont get this method.
【问题讨论】:
-
您使用的 API 级别是什么?
标签: android text-to-speech google-text-to-speech