List of usage examples for android.speech.tts TextToSpeech synthesizeToFile
public int synthesizeToFile(final CharSequence text, final Bundle params, final File file, final String utteranceId)
From source file:ca.rmen.android.poetassistant.PoemAudioExport.java
@TargetApi(Build.VERSION_CODES.LOLLIPOP) private void speakToFile21(TextToSpeech textToSpeech, String text, File audioFile) { Bundle params = new Bundle(); textToSpeech.synthesizeToFile(text, params, audioFile, TEMP_AUDIO_FILE); }