Text to speech
Convert text to speech with automatic language detection.
Request Body:
text: Input text to convert to speech - requiredlanguage: Language code (default: “auto”) - “auto” for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, ukvoice: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configuredmeetkai:speechmodel exposingsophia; use IDs advertised by your deploymentmodel: TTS model identifier (default: “auto”) - “auto” selects the default provider; a registry-resolvable id dispatches to the matching provider
Response: Returns audio file in WAV format with X-Language-Code header. When store is true, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.
Authorizations
Body
Request parameters for text-to-speech conversion with language selection.
Input text to convert to speech
1Language code: 'auto' for automatic detection, or ISO 639-1 language codes. With 'auto', text confidently detected as a language without a voice is rejected with a 400 naming it.
auto, en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk Response
Audio file in WAV format with language code header
The response is of type file.