Text To Speech (Speak)
Synthesize speech
OpenAI-compatible text-to-speech. Returns audio bytes. The serving adapter defaults to incremental delivery from the streaming lane. Set stream: false when you require a complete buffered body with Content-Length. Requires the speak:synthesize scope.
post/v1/audio/speech
Request
- Base URL: https://api.pyai.com
- URL: https://api.pyai.com/v1/audio/speech
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Response
Audio bytes. Bytes are delivered incrementally by default; stream: false returns a complete buffered body. The Content-Type varies by response_format: audio/wav (wav), audio/mpeg (mp3), audio/ogg (opus), audio/aac (aac), audio/flac (flac), audio/pcm (pcm, raw/headerless), and audio/basic (g711_ulaw/g711_alaw, raw/headerless G.711 at 8 kHz mono).
Changes
No recorded changes to this operation across all 1 revision of this API.