Android.Speech.Tts.TextToSpeech.AddSpeech Method
Adds a mapping between a CharSequence (may be spanned with TtsSpans and a sound file.

Syntax

[Android.Runtime.Register("addSpeech", "(Ljava/lang/CharSequence;Ljava/io/File;)I", "GetAddSpeech_Ljava_lang_CharSequence_Ljava_io_File_Handler")]
[return:Android.Runtime.GeneratedEnum]
public virtual OperationResult AddSpeech (Java.Lang.ICharSequence text, Java.IO.File file)

Parameters

text
The string of text. Example: "south_south_east"
file
File object pointing to the sound file.

Returns

Documentation for this section has not yet been entered.

Remarks

Adds a mapping between a CharSequence (may be spanned with TtsSpans and a sound file. Using this, it is possible to add custom pronounciations for a string of text. After a call to this method, subsequent calls to TextToSpeech.speak(java.lang.String, int, java.util.HashMap<java.lang.String, java.lang.String>) will play the specified sound resource if it is available, or synthesize the text it is missing.

[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