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

Gemini 3.8 Flash TTS

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

मॉडल id google/gemini-3.8-flash-tts
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/google/gemini-3.8-flash-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध: ≈$0.045 45 API क्रेडिट इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Google टेक्स्ट से स्पीच तेज़ #text-to-speech#audio#dialogue#voiceover

कथन या दो-वक्ता संवाद के लिए मानक Gemini 3.8 Flash टेक्स्ट-टू-स्पीच, 30 आवाज़ें

Google · ऑडियो

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

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

अनुरोध बनाएँ

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

एक वक्ता से हूबहू बुलवाया जाने वाला टेक्स्ट; संवाद के लिए speakers और turns का उपयोग करें और प्रॉम्प्ट को छोड़ दें। बोलने के ढंग के निर्देशों के लिए style_instructions का उपयोग करें और हँसने या आह भरने जैसी ध्वनियों को टेक्स्ट में <laugh> या <sigh> से चिह्नित करें। प्रदाता पूरे इनपुट में अधिकतम 8,192 टोकन की अनुमति देता है।

उन्नत style_instructions · voice · enable_safety_checker · speakers · turns

हर टर्न के लिए डिफ़ॉल्ट डिलीवरी मार्गदर्शन, जिसे ओवरराइड किया जा सकता है; ये निर्देश बोले गए ट्रांसक्रिप्ट का हिस्सा नहीं होते।

डिफ़ॉल्ट Kore

एकल वक्ता के वाक्-उत्पादन के लिए उपयोग की जाने वाली प्रीसेट आवाज़।

संवाद वक्ता कॉन्फ़िगरेशन, जिसमें ठीक दो अलग-अलग उपनाम होते हैं और प्रत्येक को एक पूर्वनिर्मित आवाज़ से जोड़ा जाता है।

संवाद टर्न का क्रम, जिसमें प्रत्येक के लिए कॉन्फ़िगर किया गया वक्ता पहचाना गया है।

POST /run/google/gemini-3.8-flash-tts?wait=20 कोटेशन → $0.045
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/google/gemini-3.8-flash-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

Gemini 3.8 Flash TTS के बारे में

30 पहले से निर्मित आवाज़ों में से किसी एक का उपयोग करके `prompt` से WAV ऑडियो बनाता है, या संवाद के लिए दो `speakers` और `turns` की सूची से। `style_instructions` ट्रांसक्रिप्ट से अलग डिलीवरी सेट करता है और सभी टर्न पर लागू किया जा सकता है। <laugh> और <sigh> जैसे इनलाइन वोकल इवेंट की अनुमति है।

पैरामीटर

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptवैकल्पिक
प्रकारstring | null
एक वक्ता से हूबहू बुलवाया जाने वाला टेक्स्ट; संवाद के लिए speakers और turns का उपयोग करें और प्रॉम्प्ट को छोड़ दें। बोलने के ढंग के निर्देशों के लिए style_instructions का उपयोग करें और हँसने या आह भरने जैसी ध्वनियों को टेक्स्ट में <laugh> या <sigh> से चिह्नित करें। प्रदाता पूरे इनपुट में अधिकतम 8,192 टोकन की अनुमति देता है।
style_instructionsवैकल्पिक
प्रकारstring | null
हर टर्न के लिए डिफ़ॉल्ट डिलीवरी मार्गदर्शन, जिसे ओवरराइड किया जा सकता है; ये निर्देश बोले गए ट्रांसक्रिप्ट का हिस्सा नहीं होते।
voiceवैकल्पिक
प्रकारenum
डिफ़ॉल्टKore
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKore
+14 औरLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
एकल वक्ता के वाक्-उत्पादन के लिए उपयोग की जाने वाली प्रीसेट आवाज़।
speakersवैकल्पिक
प्रकारobject[]
≤ 2 आइटम≥ 2 आइटम
संवाद वक्ता कॉन्फ़िगरेशन, जिसमें ठीक दो अलग-अलग उपनाम होते हैं और प्रत्येक को एक पूर्वनिर्मित आवाज़ से जोड़ा जाता है।
speakers[].speaker_idआवश्यक
प्रकारstring
≥ 1 characters
प्रत्येक टर्न में वक्ता की पहचान करने वाला उपनाम।
speakers[].voiceआवश्यक
प्रकारenum
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKore
+14 औरLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
इस वक्ता को असाइन की गई प्रीसेट आवाज़।
turnsवैकल्पिक
प्रकारobject[]
संवाद टर्न का क्रम, जिसमें प्रत्येक के लिए कॉन्फ़िगर किया गया वक्ता पहचाना गया है।
turns[].speaker_idआवश्यक
प्रकारstring
≥ 1 characters
कॉन्फ़िगरेशन के किसी वक्ता की पहचान करने वाला उपनाम।
turns[].textआवश्यक
प्रकारstring
≥ 1 characters
इस टर्न के दौरान बोला जाने वाला सटीक ट्रांसक्रिप्ट।
turns[].style_instructionsवैकल्पिक
प्रकारstring | null
इस टर्न के लिए वैकल्पिक वाक्-डिलीवरी शैली।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
यदि कॉलर अधिकृत है, तो false सेट करके स्क्रीनिंग में ढील दी जा सकती है।
आवश्यक

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "google/gemini-3.8-flash-tts",
  "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": 45,
    "usd": "0.045",
    "charged": 45,
    "refunded": 0
  },
  "input": {
    "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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}WAV फ़ॉर्मैट में ऑडियो आउटपुट।

और मॉडल: टेक्स्ट से स्पीच

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