सामग्री पर जाएँ

Index TTS 2.0

इंटीग्रेट करें

मॉडल 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"

प्रति रन अधिकतम $0.06 तक वास्तविक उपयोग के अनुसार शुल्क लिया जाता है, बाकी रिफंड किया जाता है इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें

संदर्भ वॉइस क्लिप और टेक्स्ट से स्पीच सिंथेसिस, जिसमें ऑडियो, प्रॉम्प्ट या प्रति-भावना स्ट्रेंथ के माध्यम से भावनात्मक नियंत्रण है

bilibili · ऑडियो

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

जनरेट की जाने वाली स्पीच के लिए प्रॉम्प्ट।

•आवश्यक audio_url
फ़ाइल ड्रॉप करें, या

स्पीच जनरेट करने के लिए इस्तेमाल की जाने वाली स्रोत ऑडियो फ़ाइल।

उन्नत emotion_prompt · emotional_audio_url · strength · should_use_prompt_for_emotion · enable_safety_checker · emotional_strengths

भावनात्मक स्टाइल के निर्देश, जिनके लिए `should_use_prompt_for_emotion` को भी इस्तेमाल करना आवश्यक है।

फ़ाइल ड्रॉप करें, या

भावनात्मक स्टाइल निकालने के लिए इस्तेमाल की जाने वाली रेफ़रेंस ऑडियो फ़ाइल।

डिफ़ॉल्ट 1

स्टाइल ट्रांसफ़र के दौरान लागू भावनात्मक प्रभाव इस स्ट्रेंथ सेटिंग के साथ बढ़ता है।

सूक्ष्म समायोजन के लिए प्रत्येक भावना की इंटेंसिटी वैल्यू।

POST /run/index-tts-2/text-to-speech?wait=20 कोटेशन → $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"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Index TTS 2.0 के बारे में

`prompt` में दिए गए टेक्स्ट के लिए स्पीच उत्पन्न करता है और `audio_url` से दी गई संदर्भ क्लिप की आवाज़ का उपयोग करता है। `emotional_audio_url` वाली दूसरी क्लिप से भावनात्मक शैली ली जा सकती है, जिसे `strength` (0 से 1) से स्केल किया जाता है, या `emotional_strengths` के माध्यम से सेट किया जा सकता है। इसके बजाय, `should_use_prompt_for_emotion` सक्षम करें, और चाहें तो अलग `emotion_prompt` दें। ऑडियो base64 ऑब्जेक्ट के रूप में लौटता है।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
audio_urlआवश्यक audio
प्रकारurl · audio
स्पीच जनरेट करने के लिए इस्तेमाल की जाने वाली स्रोत ऑडियो फ़ाइल।
promptआवश्यक
प्रकारstring
जनरेट की जाने वाली स्पीच के लिए प्रॉम्प्ट।
emotional_audio_urlवैकल्पिक
प्रकारurl · audio
भावनात्मक स्टाइल निकालने के लिए इस्तेमाल की जाने वाली रेफ़रेंस ऑडियो फ़ाइल।
strengthवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1
0 – 1
स्टाइल ट्रांसफ़र के दौरान लागू भावनात्मक प्रभाव इस स्ट्रेंथ सेटिंग के साथ बढ़ता है।
emotional_strengthsवैकल्पिक
प्रकारobject
सूक्ष्म समायोजन के लिए प्रत्येक भावना की इंटेंसिटी वैल्यू।
emotional_strengths.happyवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
खुशी की भावना की इंटेंसिटी।
emotional_strengths.angryवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
गुस्से की इंटेंसिटी।
emotional_strengths.sadवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
उदासी की इंटेंसिटी।
emotional_strengths.afraidवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
डर की इंटेंसिटी।
emotional_strengths.disgustedवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
घृणा की इंटेंसिटी।
emotional_strengths.melancholicवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
उदासीपूर्ण भाव की इंटेंसिटी।
emotional_strengths.surprisedवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
आश्चर्य की इंटेंसिटी।
emotional_strengths.calmवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 1
शांति की इंटेंसिटी।
should_use_prompt_for_emotionवैकल्पिक
प्रकारboolean | null
डिफ़ॉल्टfalse
सक्षम होने पर प्रॉम्प्ट-आधारित भावना गणना स्पष्ट `emotional_strengths` का स्थान लेती है। भावनात्मक स्टाइल `emotion_prompt` से आता है, यदि दिया गया हो; अन्यथा `prompt` से।
emotion_promptवैकल्पिक
प्रकारstring | null
भावनात्मक स्टाइल के निर्देश, जिनके लिए `should_use_prompt_for_emotion` को भी इस्तेमाल करना आवश्यक है।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
यदि कॉलर अधिकृत है, तो false सेट करके स्क्रीनिंग में ढील दी जा सकती है।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

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"
  }
}
आपकी फ़ाइलें, आपकी पसंदहर outputs[].url हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
audio
object {url, content_type, file_name, file_size}base64 फ़ॉर्मैट में एन्कोड किया गया ऑडियो।

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/index-tts-2/text-to-speech.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt