//clika-runtime/io.clika.modelverse/TtsModel/speak
speak
[common]
fun speak(text: String, voice: VoiceReference?, options: SpeakOptions, listener: SpeakListener): SpeakHandle
Speak text in the voice voice names, under options. Returns at once; the worker runs the request and calls listener on its thread: the utterance as one SpeechClip through SpeakListener.onClip, then SpeakListener.onDone. A null voice asks for the model's own voice, which a model whose Capabilities.needsReference is true refuses. A knob under its range, a text past the model's window, an utterance the speech window cuts, or a language the model does not interpret ends in SpeakListener.onError with the library's message.