Dža ko lil

Index TTS 2.0

Integriruj

Modelosko id index-tts-2/text-to-speech
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/index-tts-2/text-to-speech?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dži $0.06 pe jekh keripe čargeime palal realno labaripen, o aver si irime Phir les kate

Lel API klidin
bilibili Teksto ko Lav #text-to-speech

Vakerimaski sinteza andar jekh referencako glasosko klipo thaj teksto, e emocijengi kontrolasa pe audio, prompto vaj zor vaš sako emocija

bilibili · Audio

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Prompto vaś keripe e vakeripasko.

•trubul audio_url
Čhiv jekh fajl, vaj

Source audio fajlo përdžardo te kerelpe vakeripe.

Lučhe emotion_prompt · emotional_audio_url · strength · should_use_prompt_for_emotion · enable_safety_checker · emotional_strengths

Emotional-style instrukcie save mangena te avel dino vi `should_use_prompt_for_emotion`.

Čhiv jekh fajl, vaj

Reference audio fajlo savo lel emotional style.

standardno 1

Emocionalno influenceripe ando style transfer barol kadal strength settingesa.

Per-emotion intensity values vaś precizno adjustipe.

POST /run/index-tts-2/text-to-speech?wait=20 hesab → $0.06
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/index-tts-2/text-to-speech?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Index TTS 2.0

Kerel vakeripe vaš o teksto ande `prompt`, labjarindoj o glaso andar o referencako klipo dino sar `audio_url`. O emocionalno stilo šaj te lel pe andar aver klipo pe `emotional_audio_url`, te skaliril pe pe `strength` (0 dži ko 1), vaj te thovel pe pe `emotional_strengths`. Sar aver šajipe, uključin `should_use_prompt_for_emotion`, opcionalno e ulavde `emotion_prompt`-esa. O audio avel palpale sar base64 objekto.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
audio_urltrubul audio
Tipurl · audio
Source audio fajlo përdžardo te kerelpe vakeripe.
prompttrubul
Tipstring
Prompto vaś keripe e vakeripasko.
emotional_audio_urlopcionalno
Tipurl · audio
Reference audio fajlo savo lel emotional style.
strengthopcionalno
Tipnumber
standardno1
0 – 1
Emocionalno influenceripe ando style transfer barol kadal strength settingesa.
emotional_strengthsopcionalno
Tipobject
Per-emotion intensity values vaś precizno adjustipe.
emotional_strengths.happyopcionalno
Tipnumber
standardno0
0 – 1
Intensity e loshako emotionoski.
emotional_strengths.angryopcionalno
Tipnumber
standardno0
0 – 1
Intensity e ragako emotionoski.
emotional_strengths.sadopcionalno
Tipnumber
standardno0
0 – 1
Intensity e dukhalimosko emotionoski.
emotional_strengths.afraidopcionalno
Tipnumber
standardno0
0 – 1
Intensity e darako emotionoski.
emotional_strengths.disgustedopcionalno
Tipnumber
standardno0
0 – 1
Intensity e džungalimasko emotionoski.
emotional_strengths.melancholicopcionalno
Tipnumber
standardno0
0 – 1
Intensity e melancholy emotionoski.
emotional_strengths.surprisedopcionalno
Tipnumber
standardno0
0 – 1
Intensity e surprise emotionoski.
emotional_strengths.calmopcionalno
Tipnumber
standardno0
0 – 1
Intensity e šukharimaski.
should_use_prompt_for_emotionopcionalno
Tipboolean | null
standardnofalse
Promptosa arakhadi emotional calculation zamenil explicit `emotional_strengths` kana si aktivno. Emotional style avel katar `emotion_prompt` te si dino, aver katar `prompt`.
emotion_promptopcionalno
Tipstring | null
Emotional-style instrukcie save mangena te avel dino vi `should_use_prompt_for_emotion`.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "index-tts-2/text-to-speech",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 60,
    "usd": "0.06",
    "charged": 60,
    "refunded": 0
  },
  "input": {
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "prompt": "Hello from Doitong. This is a short test sentence."
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
audio
object {url, content_type, file_name, file_size}Kerdino audio base64 formateste.

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/index-tts-2/text-to-speech.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt