다음을 통해 공유


ISynthesisCallback.Done Method

Definition

The service should call this method when all the synthesized audio for a request has been passed to #audioAvailable.

[Android.Runtime.Register("done", "()I", "GetDoneHandler:Android.Speech.Tts.ISynthesisCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Speech.Tts.OperationResult Done ();
[<Android.Runtime.Register("done", "()I", "GetDoneHandler:Android.Speech.Tts.ISynthesisCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Done : unit -> Android.Speech.Tts.OperationResult

Returns

android.speech.tts.TextToSpeech#SUCCESS, android.speech.tts.TextToSpeech#ERROR or android.speech.tts.TextToSpeech#STOPPED.

Attributes

Remarks

The service should call this method when all the synthesized audio for a request has been passed to #audioAvailable.

This method should only be called on the synthesis thread, while in TextToSpeechService#onSynthesizeText.

This method has to be called if #start and/or #error was called.

Java documentation for android.speech.tts.SynthesisCallback.done().

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