Skip to main content
POST
/
api
/
v1
/
tts
/
inference
TTS Inference
curl --request POST \
  --url https://api.vachana.ai/api/v1/tts/inference \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key-ID: <x-api-key-id>' \
  --data '
{
  "text": "नमस्ते, आप कैसे हैं?",
  "voice": "speaker_0"
}
'
"<string>"

Overview

The REST inference endpoint returns the full synthesized audio in a single response. Use it when you need the complete audio file (e.g. for download or batch processing). For streaming or real-time use cases, see TTS Streaming (SSE) or TTS WebSocket.

Headers

X-API-Request-ID
string
X-API-Key-ID
string
required

Body

application/json

Request body for TTS inference.

text
string
required
voice
string
required
model
string
default:vachana-voice-v1

Supported TTS models.

Allowed value: "vachana-voice-v1"
audio_config
AudioConfig · object

Audio output configuration.

Response

Successful audio synthesis

The response is of type file.