ドキュメントhttps://developer.android.com/reference/android/speech/tts/TextToSpeech.htmlには、音声オブジェクトを設定できるsetVoice()メソッドがあります。Googleのテキストから音声へapi setVoice()not available
私はアプリケーションで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レベルは何ですか? – Ash