Java android.speech.tts SynthesisCallback fields, constructors, methods, implement or subclass

Example usage for Java android.speech.tts SynthesisCallback fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.speech.tts SynthesisCallback.

The text is from its open source code.

Method

intdone()
The service should call this method when all the synthesized audio for a request has been passed to #audioAvailable .
voiderror()
The service should call this method if the speech synthesis fails.
intstart(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.