json_config parameter. In
the Python SDK, this is a dict mapping option name to value (float or
string). When using the REST endpoints, pass it as a URL-encoded JSON
string in the query parameters.
These options apply to both the WebSocket and
REST transports. For STT, see
Transcription Settings.
Quick reference
Range is the span each option is tuned and tested across.
The four padding options are advanced levers that trade off against
each other and against
padding_bonus. Use padding_bonus for speed
control and leave the rest unset unless you are deliberately tuning
them.
Validation accepts a wider span than the table:
temp to 1.5,
padding_bonus from -5.0 to 5.0, and cfg_coef to 10.0. Error
messages quote the validation limit, so a rejected cfg_coef reports
cfg_coef should be between 1.0 and 10.0. Use the table’s ranges when
tuning.temp to 0.0. For multi-utterance
flows on a single session, see Multiplexing.
The TTS engine recognises the <flush> and <break time="..." />
tags described in Text-to-Speech.
Setup fields, not json_config
Two per-request options are set at the top level of the setup message,
alongside voice_id, rather than inside json_config:
pronunciation_id goes next to voice_id, at the top level of the
setup. An ID that doesn’t exist is reported as Pronunciation dictionary <id> not found.
Pronunciation dictionaries apply to WebSocket sessions. For the REST
endpoint, use
rewrite_rules in json_config to get the same control
over pronunciation. See Text Rewriting
Rules.Speed control
You can guide the speed of the model using the padding bonus parameter. Default value is 0.0. Negative values mean that the speaker will speak faster (values between -4.0 and -0.1). Positive values mean that the speaker will speak slower (values between 0.1 and 4.0).Temperature control
The temperature for the generation can be set with values ranging from 0 to 1.4. A value of 0 corresponds to a deterministic generation, while higher values lead to more diverse outputs. Default value is 0.7.Voice similarity control
Thecfg_coef parameter can be used to control the similarity of the
generated speech to the target voice. Values range from 1.0 to 4.0.
The default value is 2.0. The higher the value, the more the model
replicates the cloned voice but larger values can lead to audio
artifacts. In practice 2.0 to 3.0 covers most voice cloning work, and
4.0 is as high as you need to go.
Padding and embedding options
These four options are rarely worth changing. Their defaults come from the model checkpoint rather than the API, so leaving them unset gives you the values the model was tuned with.max_padding(1–100) caps how many padding tokens the model may sample consecutively. Lowering it makes speech more continuous; raising it allows longer internal pauses.max_padding_per_token(0–5) caps the padding inserted after any single text token.padding_between(0–2) forces a minimum number of padding tokens between consecutive words, which spaces out delivery uniformly.emb_noise(0.0–1.0) blends noise into the voice embedding. Small values give some variation in delivery across requests that use the same voice; larger values drift away from the target voice. Pick a value inside the range to hear an effect, for example0.1.
padding_bonus is the parameter to reach for when you want to change
speed. The three padding caps interact with it and with each other, so
changing several at once makes results hard to attribute.
Rewrite rules
Therewrite_rules parameter can be used to pass text rewriting rules
that are applied before the text is synthesized. The rules should be
passed as a string. More details on the rules themselves can be found
in the Text Rewriting Rules guide. Values
such as "en", "fr", "de", "es", "pt" enable all the rewriting
rules for a given language.