Skip to main content
One request, one clip. The audio still streams back as it is generated — you just get one request/response, with no turns and no barge-in.

Body

string
required
The whole thing, in one request. No SSML, HTML or markdown — tags are read aloud literally.
string
default:"Ananya"
Ananya or Arjun. Case-sensitive — the model interpolates whatever it is given, so ananya produces different audio.
string
One of the eleven language codes. Auto-detected when omitted — leave it out for code-mixed text.
string
default:"Maya 2 Native"
Which model answers. Maya 2 Native (default), Maya 2 Native Emotional (supports emotion tags), or Maya 2 Global. See Models.

Response

audio/L16; rate=24000; channels=1
Raw PCM — 16-bit little-endian, mono, 24000 Hz. No file header.
The body is binary. Decoding it as UTF-8 corrupts it, and writing it straight to a .wav file produces something no player will open — see Quickstart for the one-line conversion.

Emotion tags

Set "model": "Maya 2 Native Emotional" and write a tag inline:
Ten tags — [whispers] [excited] [frustrated] [nervous] [sad] [curious] [laughs] [sighs] [clears throat] [coughs]. Full list and caveats in Emotion tags.

Reuse the connection

The single biggest thing you control: