草庐IT

Portuguese

全部标签

java - 文字转语音 : Portuguese language not available?

我需要实现一个可以阅读葡萄牙语文本的应用程序(TTS)。不幸的是,当使用TextToSpeech.setLanguage(Localeloc)方法时,我无法在其中找到葡萄牙语。Locale.返回除葡萄牙语外的语言数量。那么,有什么方法可以用葡萄牙语实现TTS吗?无论如何,我正在使用Android2.3.3。更新正如一位成员所建议的,我使用了API这是代码privatevoidspeak(){Stringtext=textToSpeech.getText().toString();Audioaudio=Audio.getInstance();InputStreamsound;try{so