java.lang.Object | |
↳ | android.speech.tts.UtteranceProgressListener |
Listener for events relating to the progress of an utterance through
the synthesis queue. Each utterance is associated with a call to
or
with an
associated utterance identifier, as per
KEY_PARAM_UTTERANCE_ID
.
The callbacks specified in this method can be called from multiple threads.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Called when an utterance has successfully completed processing.
|
||||||||||
|
Called when an error has occurred during processing.
|
||||||||||
|
Called when an utterance "starts" as perceived by the caller.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Called when an utterance has successfully completed processing.
All audio will have been played back by this point for audible output, and all
output will have been written to disk for file synthesis requests.
This request is guaranteed to be called after
onStart(String)
.
utteranceId | the utterance ID of the utterance. |
---|
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.
utteranceId | the utterance ID of the utterance. |
---|
Called when an utterance "starts" as perceived by the caller. This will
be soon before audio is played back in the case of a
or before the first bytes of a file are written to storage in the case
of
.
utteranceId | the utterance ID of the utterance. |
---|