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 ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, urmodel: 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
Documentation Index
Fetch the complete documentation index at: https://docs.mka1.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.
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
auto, en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur TTS model identifier. Defaults to 'auto', which selects the default provider. Registry-resolvable ids dispatch to the matching provider.
"auto"
Response
Audio file in WAV format with language code header
The response is of type file.