Text-to-Speech (TTS)

POST/tts
Body
model*enum
#g1_aura-asteria-en#g1_aura-hera-en#g1_aura-luna-en#g1_aura-stella-en#g1_aura-athena-en#g1_aura-zeus-en#g1_aura-orion-en#g1_aura-arcas-en#g1_aura-perseus-en#g1_aura-angus-en#g1_aura-orpheus-en#g1_aura-helios-en
text*string
containerstring
encodingenum
linear16mulawalawmp3opusflacaac
sample_ratestring
Response
Body
metadata*object
Request
const response = await fetch('/tts', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "model": "#g1_aura-asteria-en",
      "text": "text"
    }),
});
const data = await response.json();
Response
{
  "metadata": {
    "transaction_key": "text",
    "request_id": "text",
    "sha256": "text",
    "created": "2025-01-20T20:49:08.584Z",
    "duration": 0,
    "channels": 0,
    "models": [
      "text"
    ]
  }
}

Last updated