Dža ko lil

Gemini 3.1 Flash Tts

Integriruj

Modelosko id gemini-3.1-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/gemini-3.1-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"

Kava mangipen: $0.003 3 API krediti Phir les kate

Lel API klidin
Google Teksto ko Lav LipsyncSig #avatar

Gemini 3.1 Flash tekst-tar-vorbipen inline stiloskere kontrolasa, 30 glasa thaj dži 10 vorbipenge

Google · 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 50 / 50000

Teksto vaš speech-synthesis ke Gemini 3.1 Flash TTS; multi-speaker lines musaj te startaren aliasenca andar speakers field, sar ande 'Alice: Hello!\nBob: Hi!'. Bičhalipen šaj fino te kontrolis pe expressive audio tagsa sar [sigh], [laughing], [whispering], thaj [short pause], vaj inline instrukcienca ande normalno čhib vaš akcento, emocia, ritmo thaj stilo, sar 'Say cheerfully: Have a wonderful day!'.

Lučhe style_instructions · output_format · voice · language_code · temperature · speakers
0 / 4000

Opcionalne instrukcije ande naturalno čhib, save ačhen ulavde katar o vakerdo teksto thaj čhiven pes anglal o prompto te formirinen i ekspresivnost, o akcento, i brzina, o tono thaj i emocija. E primerja si 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', thaj 'Whisper mysteriously'.

output_format standardno mp3

Formao vaš o rezultatosko audio: mp3 del kompresime, cikne fajlura thaj si rekomendime; wav si bi-kompresime PCM ande WAV container pe 24 kHz la 16-bit mono audiosa; ogg_opus labarel Opus andre Ogg vaš lačho balansos maškar kvaliteta thaj baripe.

standardno Kore

Jekh-vakerutno voicesko izboro andar 30 aver presetura; kana thovkeres speakers, koda izboro na labarel pes. Popularne džuvljane opcije si Kore, zorale thaj čačeske bičhalipnasa, Zephyr, světlone thaj šukar bičhalipnasa, thaj Aoede, tate thaj melodikane bičhalipnasa; popularne muršane opcije si Puck, živone thaj veseles, thaj Charon, šukare thaj profesionalno.

Multilingualeski synthesisoski čhib; avtomaticko džanipen andar o tekst pes labarel, te na specifikisaras čhib te vodis le modeloski čhib.

standardno 1

Vakeripaski randomnost; tele nastavenienca bičhalipen si fokuso thaj prediktibilno, opre nastavenienca kreativno thaj averver.

Voicesko konfiguracia savi mukel bute vakerutnen te ginaven separatne kotorra le tekstoske. Dija sakone vakerutneske jekh voja thaj jekh speaker_id alias savo si jekh sar le promptoske prefixura.

POST /run/gemini-3.1-flash-tts?wait=20 hesab → $0.003
# 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/gemini-3.1-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"

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 Gemini 3.1 Flash Tts

Konvertíjin jekh `prompt` dži 50000 karakterenge andre vakeripe. O delivery šaj te avel guidime inline vaj maškar `style_instructions`. Alosar jekh andar 30 glasa, setí jekh `language_code`, vaj përdor `speakers` (2 dži 10) vaš audio e but vakeribnenca. Rezultato si mp3, wav vaj ogg_opus, e `temperature`-sa andar 0 dži 2.

Parametra

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 50,000 simbolura
Teksto vaš speech-synthesis ke Gemini 3.1 Flash TTS; multi-speaker lines musaj te startaren aliasenca andar speakers field, sar ande 'Alice: Hello!\nBob: Hi!'. Bičhalipen šaj fino te kontrolis pe expressive audio tagsa sar [sigh], [laughing], [whispering], thaj [short pause], vaj inline instrukcienca ande normalno čhib vaš akcento, emocia, ritmo thaj stilo, sar 'Say cheerfully: Have a wonderful day!'.
style_instructionsopcionalno
Tipstring | null
≤ 4,000 simbolura
Opcionalne instrukcije ande naturalno čhib, save ačhen ulavde katar o vakerdo teksto thaj čhiven pes anglal o prompto te formirinen i ekspresivnost, o akcento, i brzina, o tono thaj i emocija. E primerja si 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', thaj 'Whisper mysteriously'.
voiceopcionalno
Tipenum
standardnoKore
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKore
+14 averLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
Jekh-vakerutno voicesko izboro andar 30 aver presetura; kana thovkeres speakers, koda izboro na labarel pes. Popularne džuvljane opcije si Kore, zorale thaj čačeske bičhalipnasa, Zephyr, světlone thaj šukar bičhalipnasa, thaj Aoede, tate thaj melodikane bičhalipnasa; popularne muršane opcije si Puck, živone thaj veseles, thaj Charon, šukare thaj profesionalno.
language_codeopcionalno
Tipenum
Arabic (Egypt)Bangla (Bangladesh)Dutch (Netherlands)English (India)English (US)French (France)German (Germany)Hindi (India)Indonesian (Indonesia)Italian (Italy)Japanese (Japan)Korean (South Korea)Marathi (India)Polish (Poland)Portuguese (Brazil)Romanian (Romania)
+71 averRussian (Russia)Spanish (Spain)Tamil (India)Telugu (India)Thai (Thailand)Turkish (Turkey)Ukrainian (Ukraine)Vietnamese (Vietnam)Afrikaans (South Africa)Albanian (Albania)Amharic (Ethiopia)Arabic (World)Armenian (Armenia)Azerbaijani (Azerbaijan)Basque (Spain)Belarusian (Belarus)Bulgarian (Bulgaria)Burmese (Myanmar)Catalan (Spain)Cebuano (Philippines)Chinese Mandarin (China)Chinese Mandarin (Taiwan)Croatian (Croatia)Czech (Czech Republic)Danish (Denmark)English (Australia)English (UK)Estonian (Estonia)Filipino (Philippines)Finnish (Finland)French (Canada)Galician (Spain)Georgian (Georgia)Greek (Greece)Gujarati (India)Haitian Creole (Haiti)Hebrew (Israel)Hungarian (Hungary)Icelandic (Iceland)Javanese (Java)Kannada (India)Konkani (India)Lao (Laos)Latin (Vatican City)Latvian (Latvia)Lithuanian (Lithuania)Luxembourgish (Luxembourg)Macedonian (North Macedonia)Maithili (India)Malagasy (Madagascar)Malay (Malaysia)Malayalam (India)Mongolian (Mongolia)Nepali (Nepal)Norwegian Bokmal (Norway)Norwegian Nynorsk (Norway)Odia (India)Pashto (Afghanistan)Persian (Iran)Portuguese (Portugal)Punjabi (India)Serbian (Serbia)Sindhi (India)Sinhala (Sri Lanka)Slovak (Slovakia)Slovenian (Slovenia)Spanish (Latin America)Spanish (Mexico)Swahili (Kenya)Swedish (Sweden)Urdu (Pakistan)
Multilingualeski synthesisoski čhib; avtomaticko džanipen andar o tekst pes labarel, te na specifikisaras čhib te vodis le modeloski čhib.
speakersopcionalno
Tipobject[]
Voicesko konfiguracia savi mukel bute vakerutnen te ginaven separatne kotorra le tekstoske. Dija sakone vakerutneske jekh voja thaj jekh speaker_id alias savo si jekh sar le promptoske prefixura.
temperatureopcionalno
Tipnumber
standardno1
0 – 2
Vakeripaski randomnost; tele nastavenienca bičhalipen si fokuso thaj prediktibilno, opre nastavenienca kreativno thaj averver.
output_formatopcionalno
Tipenum
standardnomp3
wavmp3ogg_opus
Formao vaš o rezultatosko audio: mp3 del kompresime, cikne fajlura thaj si rekomendime; wav si bi-kompresime PCM ande WAV container pe 24 kHz la 16-bit mono audiosa; ogg_opus labarel Opus andre Ogg vaš lačho balansos maškar kvaliteta thaj baripe.
trubul

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "gemini-3.1-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": 3,
    "usd": "0.003",
    "charged": 3,
    "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"
  }
}
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}Audio-fajlo kerdino generiripeça.

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/gemini-3.1-flash-tts.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt