SetuDocs

Audio & Voice

The Voice product (NAAD model) covers text-to-speech, speech-to-text, translation, voice changing and voice isolation. Endpoints follow the OpenAI Audio API where one exists, plus a few NAAD-native ones.

Text to Speech

POST https://api.setu.dwet.ai/v1/audio/speech — returns audio bytes (audio/wav).

bash
curl https://api.setu.dwet.ai/v1/audio/speech \
  -H "Authorization: Bearer $SETU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "naad-tts-v1",
    "voice": "aditi",
    "input": "नमस्ते, आपका स्वागत है।",
    "speed": 1.0,
    "stability": 0.5,
    "style": 0.35
  }' --output speech.wav

Optional generation controls: speed (0.5–2.0, default 1.0), stability (0–1, default 0.5), and style (0–1, default 0.35). Stability affects consistency; style affects delivery exaggeration.

Transcriptions (Speech to Text)

POST https://api.setu.dwet.ai/v1/audio/transcriptions — multipart upload of an audio file.

bash
curl https://api.setu.dwet.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $SETU_API_KEY" \
  -F model="naad-stt-v1" \
  -F file="@audio.wav" \
  -F response_format="json"

Optional response_format: text, json (default), verbose_json (segments + timestamps), or srt (subtitle file).

json
{ "text": "This is the transcribed text." }

Translations

POST https://api.setu.dwet.ai/v1/audio/translations — transcribe and translate speech to English. Same multipart format as transcriptions.

Speech to Speech

POST https://api.setu.dwet.ai/v1/audio/speech-to-speech — upload or record source speech and receive audio in a target voice. Optional speed, stability, and style controls match the studio.

Voice Changer

POST https://api.setu.dwet.ai/v1/audio/voice-changer — re-voice an uploaded file into a target voice while preserving content and timing. Returns audio bytes.

Voice Isolator

POST https://api.setu.dwet.ai/v1/audio/isolate — remove background noise and isolate clean speech from an uploaded file. Returns audio bytes.

List voices

GET https://api.setu.dwet.ai/v1/voices — returns the voice catalog and available voice models.

json
{
  "voices": [
    { "id": "aditi", "name": "Aditi", "language": "Hindi", "languageCode": "hi-IN", "gender": "female" }
  ],
  "models": [ { "id": "naad-tts-v1", "kind": "tts" } ]
}

TTS is billed per character; STT, translation, voice-changer and isolation are billed per second of audio. See Models.