TextToSpeechService.OnSynthesizeText Method

Definition

Tells the service to synthesize speech from the given text.

[Android.Runtime.Register("onSynthesizeText", "(Landroid/speech/tts/SynthesisRequest;Landroid/speech/tts/SynthesisCallback;)V", "GetOnSynthesizeText_Landroid_speech_tts_SynthesisRequest_Landroid_speech_tts_SynthesisCallback_Handler")]
protected abstract void OnSynthesizeText (Android.Speech.Tts.SynthesisRequest? request, Android.Speech.Tts.ISynthesisCallback? callback);
[<Android.Runtime.Register("onSynthesizeText", "(Landroid/speech/tts/SynthesisRequest;Landroid/speech/tts/SynthesisCallback;)V", "GetOnSynthesizeText_Landroid_speech_tts_SynthesisRequest_Landroid_speech_tts_SynthesisCallback_Handler")>]
abstract member OnSynthesizeText : Android.Speech.Tts.SynthesisRequest * Android.Speech.Tts.ISynthesisCallback -> unit

Parameters

request
SynthesisRequest

The synthesis request.

callback
ISynthesisCallback

The callback that the engine must use to make data available for playback or for writing to a file.

Attributes

Remarks

Tells the service to synthesize speech from the given text. This method should block until the synthesis is finished. Called on the synthesis thread.

Java documentation for android.speech.tts.TextToSpeechService.onSynthesizeText(android.speech.tts.SynthesisRequest, android.speech.tts.SynthesisCallback).

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