//clika-runtime/io.clika.modelverse/SpeakListener
SpeakListener
[common]
interface SpeakListener
The outcome of one synthesis. The calls arrive on the model's own worker thread: onClip with the utterance, then exactly one of onDone or onError. This release of the model library answers the whole utterance in one call, so onClip is called once; a library that produces the audio in chunks calls it once per chunk, in order, on the same listener.
Functions
| Name | Summary |
|---|---|
| onClip | [common] abstract fun onClip(clip: SpeechClip) Synthesized audio, ready to play or save. |
| onDone | [common] abstract fun onDone(report: SpeakReport) The synthesis ended; report says what it cost. |
| onError | [common] abstract fun onError(message: String) The synthesis failed, or was refused before the model ran; nothing follows. |