Udostępnij za pośrednictwem


TextToSpeech Constructors

Definition

Overloads

TextToSpeech(Context, TextToSpeech+IOnInitListener)

The constructor for the TextToSpeech class, using the default TTS engine.

TextToSpeech(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

TextToSpeech(Context, TextToSpeech+IOnInitListener, String)

The constructor for the TextToSpeech class, using the default TTS engine.

TextToSpeech(Context, TextToSpeech+IOnInitListener)

The constructor for the TextToSpeech class, using the default TTS engine.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/speech/tts/TextToSpeech$OnInitListener;)V", "")]
public TextToSpeech (Android.Content.Context? context, Android.Speech.Tts.TextToSpeech.IOnInitListener? listener);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/speech/tts/TextToSpeech$OnInitListener;)V", "")>]
new Android.Speech.Tts.TextToSpeech : Android.Content.Context * Android.Speech.Tts.TextToSpeech.IOnInitListener -> Android.Speech.Tts.TextToSpeech

Parameters

context
Context

The context this instance is running in.

listener
TextToSpeech.IOnInitListener

The TextToSpeech.OnInitListener that will be called when the TextToSpeech engine has initialized. In a case of a failure the listener may be called immediately, before TextToSpeech instance is fully constructed.

Attributes

Remarks

Java documentation for android.speech.tts.TextToSpeech.TextToSpeech(android.content.Context, android.speech.tts.OnInitListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TextToSpeech(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected TextToSpeech (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Speech.Tts.TextToSpeech : nativeint * Android.Runtime.JniHandleOwnership -> Android.Speech.Tts.TextToSpeech

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TextToSpeech(Context, TextToSpeech+IOnInitListener, String)

The constructor for the TextToSpeech class, using the default TTS engine.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/speech/tts/TextToSpeech$OnInitListener;Ljava/lang/String;)V", "")]
public TextToSpeech (Android.Content.Context? context, Android.Speech.Tts.TextToSpeech.IOnInitListener? listener, string? engine);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/speech/tts/TextToSpeech$OnInitListener;Ljava/lang/String;)V", "")>]
new Android.Speech.Tts.TextToSpeech : Android.Content.Context * Android.Speech.Tts.TextToSpeech.IOnInitListener * string -> Android.Speech.Tts.TextToSpeech

Parameters

context
Context

The context this instance is running in.

listener
TextToSpeech.IOnInitListener

The TextToSpeech.OnInitListener that will be called when the TextToSpeech engine has initialized. In a case of a failure the listener may be called immediately, before TextToSpeech instance is fully constructed.

engine
String
Attributes

Remarks

Java documentation for android.speech.tts.TextToSpeech.TextToSpeech(android.content.Context, android.speech.tts.OnInitListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to