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

Headers

HeaderValueRequired
AuthorizationBearer YOUR_API_KEYYes
Content-Typeapplication/jsonYes

Body Parameters

FieldTypeDescriptionRequiredOptionsDefault
textStringthe text to processyes
voice_accentStringAccent for the speech voiceyes
voice_genderStringAccent for the speech voiceyesmale / female

Supported English Language Accents

  • afrikaans
  • akan
  • amharic
  • arabic
  • bajju
  • bekwarra
  • benin
  • bette
  • chichewa
  • ebira
  • eggon
  • epie
  • estako
  • french
  • fulani
  • ga
  • gerawa
  • hausa
  • ibibio
  • idoma
  • igala
  • igbo
  • ijaw
  • isindebele
  • isoko
  • kanuri
  • kinyarwanda
  • luganda
  • nupe
  • nyandang
  • ogbia
  • ogoni
  • pidgin
  • sepedi
  • sesotho
  • shona
  • siswati
  • swahili
  • tiv
  • tswana
  • twi
  • urhobo
  • xhosa
  • yoruba
  • zulu

Basic request and response sample

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"
  }'