The Text-to-Speech (TTS) API converts text into natural-sounding speech. Submit your text and receive high-quality audio output in various voices and languages.
Endpoint
POST https://infer.voice.intron.io/tts/v1/enqueue
Authentication
Authorization: Bearer YOUR_API_KEY
Request
Header Value Required AuthorizationBearer YOUR_API_KEYYes Content-Typeapplication/jsonYes
Body Parameters
Field Type Description Required Options Default textString the text to process yes voice_accentString Accent for the speech voice yes see page of supported accents voice_genderString Accent for the speech voice yes male / female voice_languageString Language of the input text no see page of supported languages en
Supported Language And Accents
Supported Languages And Accents Comprehensive list of languages and accents supported
Basic request and response sample
cURL
Python
JavaScript
Response
Response when tts processsing completed
curl --location 'https://infer.voice.intron.io/tts/v1/enqueue' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer api-key' \
--data '{
"text":"hello world",
"voice_accent":"swahili",
"voice_gender":"female"
}'
Rate Limits
60 requests per minute
Rate limit headers included in response
Retry-After: (delay-seconds) indicates time in seconds to retry