ISynthesisCallback.Error 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
Error() |
The service should call this method if the speech synthesis fails. |
Error(TextToSpeechError) |
The service should call this method if the speech synthesis fails. |
Error()
The service should call this method if the speech synthesis fails.
[Android.Runtime.Register("error", "()V", "GetErrorHandler:Android.Speech.Tts.ISynthesisCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Error ();
[<Android.Runtime.Register("error", "()V", "GetErrorHandler:Android.Speech.Tts.ISynthesisCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Error : unit -> unit
- Attributes
Remarks
The service should call this method if the speech synthesis fails.
This method should only be called on the synthesis thread, while in TextToSpeechService#onSynthesizeText
.
Java documentation for android.speech.tts.SynthesisCallback.error()
.
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
Error(TextToSpeechError)
The service should call this method if the speech synthesis fails.
[Android.Runtime.Register("error", "(I)V", "GetError_IHandler:Android.Speech.Tts.ISynthesisCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Error (Android.Speech.Tts.TextToSpeechError errorCode);
[<Android.Runtime.Register("error", "(I)V", "GetError_IHandler:Android.Speech.Tts.ISynthesisCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Error : Android.Speech.Tts.TextToSpeechError -> unit
Parameters
- errorCode
- TextToSpeechError
Error code to pass to the client. One of the ERROR_ values from android.speech.tts.TextToSpeech
- Attributes
Remarks
The service should call this method if the speech synthesis fails.
This method should only be called on the synthesis thread, while in TextToSpeechService#onSynthesizeText
.
Java documentation for android.speech.tts.SynthesisCallback.error(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.