Voice
Text-to-speech
Generate 24 kHz WAV speech in 19 languages with Perigee-1-tts.
client.synthesize() waits for a queued generation and returns WAV bytes. The output is 24,000 Hz, 16-bit, mono WAV audio.
Parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | Text to synthesize, up to 10,000 Unicode characters. |
language | Yes | One of the 19 supported TTS languages. It selects pronunciation and the standard voice conditioning. |
Standard synthesis does not expose a voice_id parameter.
REST request
The response uses Content-Type: audio/wav. Usage appears in X-Usage-Characters and cost in X-Cost-Credits.
Stream audio
Common errors
401: invalid or revoked API key.402: insufficient credit.422: unsupported language, empty text, or text longer than 10,000 characters.503: speech synthesis is temporarily unavailable or pricing is not configured.504: generation exceeded the request timeout.