TextToSpeech.SetOnUtteranceProgressListener(UtteranceProgressListener) 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.
Sets the listener that will be notified of various events related to the synthesis of a given utterance.
[Android.Runtime.Register("setOnUtteranceProgressListener", "(Landroid/speech/tts/UtteranceProgressListener;)I", "GetSetOnUtteranceProgressListener_Landroid_speech_tts_UtteranceProgressListener_Handler")]
public virtual Android.Speech.Tts.OperationResult SetOnUtteranceProgressListener (Android.Speech.Tts.UtteranceProgressListener? listener);
[<Android.Runtime.Register("setOnUtteranceProgressListener", "(Landroid/speech/tts/UtteranceProgressListener;)I", "GetSetOnUtteranceProgressListener_Landroid_speech_tts_UtteranceProgressListener_Handler")>]
abstract member SetOnUtteranceProgressListener : Android.Speech.Tts.UtteranceProgressListener -> Android.Speech.Tts.OperationResult
override this.SetOnUtteranceProgressListener : Android.Speech.Tts.UtteranceProgressListener -> Android.Speech.Tts.OperationResult
Parameters
- listener
- UtteranceProgressListener
the listener to use.
Returns
#ERROR
or #SUCCESS
- Attributes
Remarks
Sets the listener that will be notified of various events related to the synthesis of a given utterance.
See UtteranceProgressListener
and TextToSpeech.Engine#KEY_PARAM_UTTERANCE_ID
.
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.