Google Cloud Text-to-Speech synthesis.
Authenticate with the X-API-Key request header.
List price. Volume / bulk customers get a discounted rate — contact us for account pricing.
| Name | Type | Required | Description | Default / options |
|---|---|---|---|---|
| text | string | required | Text to synthesize. | — |
| voice | string | optional | Google Cloud voice name. | — |
curl -X POST https://brahmand-api.bulletshorts.co/v1/audio/google-tts \
-H "X-API-Key: $TRINETRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Welcome to the Trinetra Brahmand console.","voice":"en-US-Neural2-J"}'{
"text": "Welcome to the Trinetra Brahmand console.",
"voice": "en-US-Neural2-J"
}Submitting a job returns 202 Accepted with a job id. Poll GET /v1/jobs/{id} until the job reaches a terminal state, or register a webhook to be notified.
{
"job_id": "job_googletts_a1b2c3",
"status": "queued"
}{
"id": "job_googletts_a1b2c3",
"model": "google-tts",
"status": "succeeded",
"output": {
"outputs": [
{
"url": "https://cdn.trinetra.ai/out/google-tts/a1b2c3.mp3",
"type": "audio"
}
]
},
"credits_charged": 10
}Webhook: set a webhook_url on your API key to receive a POST with the terminal job document instead of polling.