UtteranceProgressListener.OnError 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.
Overloads
OnError(String) |
Obsolete.
Called when an error has occurred during processing. |
OnError(String, TextToSpeechError) |
Called when an error has occurred during processing. |
OnError(String)
Caution
deprecated
Called when an error has occurred during processing.
[Android.Runtime.Register("onError", "(Ljava/lang/String;)V", "GetOnError_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public abstract void OnError (string? utteranceId);
[<Android.Runtime.Register("onError", "(Ljava/lang/String;)V", "GetOnError_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member OnError : string -> unit
Parameters
- utteranceId
- String
The utterance ID of the utterance.
- Attributes
Remarks
Called when an error has occurred during processing. This can be called at any point in the synthesis process. Note that there might be calls to #onStart(String)
for specified utteranceId but there will never be a call to both #onDone(String)
and #onError(String)
for the same utterance.
This member is deprecated. Use #onError(String,int)
instead
Java documentation for android.speech.tts.UtteranceProgressListener.onError(java.lang.String)
.
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
OnError(String, TextToSpeechError)
Called when an error has occurred during processing.
[Android.Runtime.Register("onError", "(Ljava/lang/String;I)V", "GetOnError_Ljava_lang_String_IHandler")]
public virtual void OnError (string? utteranceId, Android.Speech.Tts.TextToSpeechError errorCode);
[<Android.Runtime.Register("onError", "(Ljava/lang/String;I)V", "GetOnError_Ljava_lang_String_IHandler")>]
abstract member OnError : string * Android.Speech.Tts.TextToSpeechError -> unit
override this.OnError : string * Android.Speech.Tts.TextToSpeechError -> unit
Parameters
- utteranceId
- String
The utterance ID of the utterance.
- errorCode
- TextToSpeechError
one of the ERROR_* codes from TextToSpeech
- Attributes
Remarks
Called when an error has occurred during processing. This can be called at any point in the synthesis process. Note that there might be calls to #onStart(String)
for specified utteranceId but there will never be a call to both #onDone(String)
and #onError(String,int)
for the same utterance. The default implementation calls #onError(String)
.
Java documentation for android.speech.tts.UtteranceProgressListener.onError(java.lang.String, int)
.
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.