klyn.genai.tts.SpeechSynthesizer.synthesize
method
public synthesize(notnull text as String, notnull voice as String = "", notnull language as String = "auto", notnull instructions as String = "") as AudioClip
Description

Produces a complete independent mono Float32 clip without playback. Memory is O(output samples); use stream() for bounded consumption. Concatenation copies every block once, not the whole preceding utterance.

Parameters
ParameterDescription
textNonempty text accepted by the checkpoint.
voiceRequired built-in voice name.
languageBCP 47 language code, or auto.
instructionsOptional style instruction, only on compatible checkpoints.
Returns

Complete audio at the checkpoint's output frequency.

Throws
  • IOException if closed/busy; ValueException on invalid input or frame-limit exhaustion.
Example

clip = speech.synthesize("Bonjour", voice="ryan", language="fr")