Android.Speech.Tts.TextToSpeech.SynthesizeToFile Method
Synthesizes the given text to a file using the specified parameters.

Syntax

[Android.Runtime.Register("synthesizeToFile", "(Ljava/lang/CharSequence;Landroid/os/Bundle;Ljava/io/File;Ljava/lang/String;)I", "GetSynthesizeToFile_Ljava_lang_CharSequence_Landroid_os_Bundle_Ljava_io_File_Ljava_lang_String_Handler")]
[return:Android.Runtime.GeneratedEnum]
public virtual OperationResult SynthesizeToFile (Java.Lang.ICharSequence text, Android.OS.Bundle params, Java.IO.File file, string utteranceId)

Parameters

text
The text that should be synthesized. No longer than TextToSpeech.MaxSpeechInputLength characters.
params
Parameters for the request. Can be null. Engine specific parameters may be passed in but the parameter keys must be prefixed by the name of the engine they are intended for. For example the keys "com.svox.pico_foo" and "com.svox.pico:bar" will be passed to the engine named "com.svox.pico" if it is being used.
file
File to write the generated audio data to.
utteranceId
An unique identifier for this request.

Returns

Documentation for this section has not yet been entered.

Remarks

Synthesizes the given text to a file using the specified parameters. This method is asynchronous, i.e. the method just adds the request to the queue of TTS requests and then returns. The synthesis might not have finished (or even started!) at the time when this method returns. In order to reliably detect errors during synthesis, we recommend setting an utterance progress listener (see TextToSpeech.SetOnUtteranceProgressListener(UtteranceProgressListener)).

[Android Documentation]

Requirements

Namespace: Android.Speech.Tts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4