public stream(notnull text as String, notnull voice as String = "", notnull language as String = "auto", notnull instructions as String = "") as SpeechStream
Starts bounded, cancellable incremental synthesis on a registered Klyn worker.
| Parameter | Description |
|---|---|
text | Nonempty text; embedded NUL is rejected. |
voice | Built-in voice name; required by the CustomVoice checkpoint. |
language | BCP 47 language code, or auto. |
instructions | Optional voice/style instruction; unsupported checkpoints reject it. |
Owned single-consumer PCM stream; always close it.
try stream = speech.stream("Hello", voice="ryan", language="en"): block = stream.read()