TextToSpeechService.OnSynthesizeText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.