Lenguaje

TextToSpeech Constructores

Definición

Sobrecargas

Nombre Description
TextToSpeech(Context, TextToSpeech+IOnInitListener)

Constructor de la clase TextToSpeech, utilizando el motor TTS predeterminado.

TextToSpeech(IntPtr, JniHandleOwnership)

Constructor utilizado al crear representaciones administradas de objetos JNI; llamado por el tiempo de ejecución.

TextToSpeech(Context, TextToSpeech+IOnInitListener, String)

Constructor de la clase TextToSpeech, utilizando el motor TTS especificado.

TextToSpeech(Context, TextToSpeech+IOnInitListener)

Constructor de la clase TextToSpeech, utilizando el motor TTS predeterminado.

[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

Parámetros

context
Context

Contexto en el que se ejecuta esta instancia.

listener
TextToSpeech.IOnInitListener

al TextToSpeech.OnInitListener que se llamará cuando se haya inicializado el motor TextToSpeech. En un caso de error, se puede llamar inmediatamente al agente de escucha, antes de que la instancia textToSpeech esté totalmente construida.

Atributos

Comentarios

Java documentación para android.speech.tts.TextToSpeech.TextToSpeech(android.content.Context, android.speech.tts.OnInitListener).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

TextToSpeech(IntPtr, JniHandleOwnership)

Constructor utilizado al crear representaciones administradas de objetos JNI; llamado por el tiempo de ejecución.

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

Parámetros

javaReference
IntPtr

nativeint

que IntPtrcontiene una referencia de objeto Java Native Interface (JNI).

transfer
JniHandleOwnership

un JniHandleOwnershipvalor de tipo que indica cómo controlar javaReference

Comentarios

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

TextToSpeech(Context, TextToSpeech+IOnInitListener, String)

Constructor de la clase TextToSpeech, utilizando el motor TTS especificado.

[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

Parámetros

context
Context

Contexto en el que se ejecuta esta instancia.

listener
TextToSpeech.IOnInitListener

al TextToSpeech.OnInitListener que se llamará cuando se haya inicializado el motor TextToSpeech. En un caso de error, se puede llamar inmediatamente al agente de escucha, antes de que la instancia textToSpeech esté totalmente construida.

engine
String

Nombre del paquete del motor de TTS que se va a usar.

Atributos

Comentarios

Constructor de la clase TextToSpeech, utilizando el motor TTS especificado. Esto también inicializará el motor TextToSpeech asociado si aún no se está ejecutando.

Referencia de Android para android.speech.tts.TextToSpeech.TextToSpeech.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a