Android.Speech.Tts.TextToSpeech.AddSpeech Method
Adds a mapping between a string of text and a sound resource in a package.

Syntax

[Android.Runtime.Register("addSpeech", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetAddSpeech_Ljava_lang_String_Ljava_lang_String_IHandler")]
[return:Android.Runtime.GeneratedEnum]
public virtual OperationResult AddSpeech (string text, string packagename, int resourceId)

Parameters

text
The string of text. Example: "south_south_east"
packagename
Pass the packagename of the application that contains the resource. If the resource is in your own application (this is the most common case), then put the packagename of your application here.

Example: "com.google.marvin.compass"

The packagename can be found in the AndroidManifest.xml of your application.

<manifest xmlns:android="..." package="com.google.marvin.compass">

resourceId
Example: R.raw.south_south_east

Returns

Documentation for this section has not yet been entered.

Remarks

Adds a mapping between a string of text and a sound resource in a package. 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