Optionalbit_MP3 bit rate in bits per second: 32000, 48000, 64000 (the default),
96000 or 128000; at most 64000 at a sample_rate of 8000. With
encoding: "mp3" only.
Optionalcontainer?: TextToSpeechContainerraw (the default) or wav, with a PCM or G.711 encoding only.
1 to 5,000 characters.
The body of
POST /v1/speech. From plain JavaScript, the client also takes the camelCase namesvoiceId,modelId,sampleRate,bitRateandextendBiometricConsent: each is sent as its snake_case field, with a warning once per process, and the API checks it as that field. When both names are given with different values, the snake_case value is sent.