Skip to main content
Both Synthesize speech and Stream speech accept the same JSON body.
string
required
The text to synthesize. Maximum 10,000 characters. Requests over the limit return 400.
string
BCP-47 language code, e.g. en, hi, es. Defaults to the voice’s primary_language.
string
default:"wav"
Output encoding:The headerless PCM formats need a known sample_rate and channel count to play.
integer
default:24000
Output sample rate in Hz. Defaults to the provider’s native rate (24000); values above it are upsampled. The actual rate is returned in the X-Sample-Rate response header (and the start event for streaming).
integer
default:32
Number of inference steps, 1–32 - a quality vs. latency trade-off. Provider default (32) if omitted.
number
Style/expressiveness control, 0.0–1.0. Provider default if omitted.
Example body