Example usage for Java android.speech.tts SynthesisCallback fields, constructors, methods, implement or subclass
The text is from its open source code.
int | done() The service should call this method when all the synthesized audio for a request has been passed to #audioAvailable . |
void | error() The service should call this method if the speech synthesis fails. |
int | start(int sampleRateInHz, @SupportedAudioFormat int audioFormat, @IntRange(from = 1, to = 2) int channelCount) The service should call this when it starts to synthesize audio for this request. |