Skip to main content
TTS models accept advanced options via the 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.
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.
For deterministic output, set temp to 0.0. For multi-utterance flows on a single session, see Multiplexing. For designed voices, see also Voice Design settings. 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 only. REST requests cannot use them; the pattern-based rewrite_rules in json_config are the only rewriting control there. 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

The cfg_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.

Rewrite rules

The rewrite_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", "fr-be", "fr-ch", "de", "es", "pt" enable all the rewriting rules for a given language. When the voice has a language, its alias is enabled by default; pass "none" to disable rewriting entirely.

Passing json_config

For REST, see the TTS POST reference.