public SpeechSynthesizer(notnull path as FilePath, notnull device as Device = Device.auto, maxContext as Long = 1024l, maxFrames as Long = 512l, seed as ULong = 0ul, verbose as Boolean = false)
Opens a local CustomVoice GGUF and keeps its parameters resident.
| Parameter | Description |
|---|---|
path | Existing layout-1 Qwen3-TTS GGUF checkpoint. |
device | CPU, NVIDIA GPU, or auto (GPU when available, otherwise CPU). Causal audio kernels currently execute on CPU with synchronized tensors. |
maxContext | Talker prompt plus generated-frame capacity; at most 32768. |
maxFrames | Codec-frame bound; reaching it without EOS raises ValueException. |
seed | Repeatable per-utterance sampling seed, independent of global RNG. |
verbose | Display weight-loading progress; default false. |
try speech = SpeechSynthesizer(FilePath("voice.gguf")): clip = speech.synthesize("Hello", voice="ryan")