synthesize To File
fun synthesizeToFile(text: String, file: File, preset: SpeechPreset = config.defaultPreset): SpeechResult
Renders text to a WAV audio file using the given preset.
The file is written asynchronously by the TTS engine. This method returns immediately after dispatching the request.
Return
SpeechResult.Success if the request was dispatched, or SpeechResult.NotReady.
Parameters
text
The French text to synthesize.
file
Destination File where the audio will be written.
preset
Prosody preset to apply. Defaults to Config.defaultPreset.