共用方式為


TextToSpeech.SetOnUtteranceProgressListener(UtteranceProgressListener) Method

Definition

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.

Java documentation for android.speech.tts.TextToSpeech.setOnUtteranceProgressListener(android.speech.tts.UtteranceProgressListener).

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