Interface: SynthesizeSpeechRequest
@kortexya/reasoninglayer / SynthesizeSpeechRequest
Interface: SynthesizeSpeechRequest
Section titled “Interface: SynthesizeSpeechRequest”Defined in: src/types/speech.ts:176
Body of POST /api/v1/speech/synthesize — synthesize speech.
There is no one-off clone from a reference clip: a clip carries no consent
record, so the engine refuses it (reasoninglayer#665). Enroll the voice with
enrollVoice and pass its voiceId.
Properties
Section titled “Properties”description?
Section titled “description?”
optionaldescription?:string|null
Defined in: src/types/speech.ts:180
VoiceDesign: describe the desired voice in words. Optional.
engine?
Section titled “engine?”
optionalengine?:string|null
Defined in: src/types/speech.ts:182
Engine to render with ("qwen3-tts", "chatterbox"). Defaults to "qwen3-tts". Optional.
format?
Section titled “format?”
optionalformat?:string|null
Defined in: src/types/speech.ts:184
Output encoding: "wav" (default), "pcm_s16le", "pcm_f32le". Optional.
instruction?
Section titled “instruction?”
optionalinstruction?:string|null
Defined in: src/types/speech.ts:186
Style instruction accompanying speaker. Optional.
language?
Section titled “language?”
optionallanguage?:string|null
Defined in: src/types/speech.ts:188
Language hint. Optional.
maxDurationS?
Section titled “maxDurationS?”
optionalmaxDurationS?:number|null
Defined in: src/types/speech.ts:190
Cap on generated audio length in seconds. Optional.
optionalseed?:number|null
Defined in: src/types/speech.ts:192
Sampling seed; fixing it makes synthesis reproducible. Optional.
speaker?
Section titled “speaker?”
optionalspeaker?:string|null
Defined in: src/types/speech.ts:194
A checkpoint preset speaker name (see listEngines). Optional.
stream?
Section titled “stream?”
optionalstream?:boolean
Defined in: src/types/speech.ts:178
Incremental PCM response; requires format pcm_s16le.
text:
string
Defined in: src/types/speech.ts:196
Text to speak.
voiceId?
Section titled “voiceId?”
optionalvoiceId?:string|null
Defined in: src/types/speech.ts:198
A voice enrolled through enrollVoice, by its ReasoningLayer id. Optional.