File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
core/java/android/speech/tts Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2222 * {@link #start}, then {@link #audioAvailable} until all audio has been provided, then finally
2323 * {@link #done}.
2424 *
25- *
2625 * {@link #error} can be called at any stage in the synthesis process to
2726 * indicate that an error has occurred, but if the call is made after a call
2827 * to {@link #done}, it might be discarded.
28+ *
29+ * After {@link #start} been called, {@link #done} must be called regardless of errors.
2930 */
3031public interface SynthesisCallback {
3132 /**
@@ -72,6 +73,8 @@ public interface SynthesisCallback {
7273 * This method should only be called on the synthesis thread,
7374 * while in {@link TextToSpeechService#onSynthesizeText}.
7475 *
76+ * This method has to be called if {@link #start} was called.
77+ *
7578 * @return {@link TextToSpeech#SUCCESS} or {@link TextToSpeech#ERROR}.
7679 */
7780 public int done ();
You can’t perform that action at this time.
0 commit comments