Skip to main content
POST
Generate TTS Audio

Path Parameters

session_id
string
required

Body

text
string
required

Text to convert to speech using the session's configured voice.

Minimum string length: 1
locale
string

Optional locale (e.g. en-US, ko-KR) for text normalization.

Minimum string length: 1
output_format
enum<string>
default:mp3

Audio format to return: mp3, wav, or pcm.

  • pcm_24000 - pcm_24000
  • pcm_44100 - pcm_44100
  • wav_24000 - wav_24000
  • wav_44100 - wav_44100
  • mp3_44100 - mp3_44100
  • mp3 - mp3
  • wav - wav
  • pcm - pcm
Available options:
pcm_24000,
pcm_44100,
wav_24000,
wav_44100,
mp3_44100,
mp3,
wav,
pcm

Response

audio
string
required
locale
string
required
normalized_text
string
required