Dža ko lil

Gemini TTS

Integriruj

Modelosko id gemini-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-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.03 30 API krediti Phir les kate

Lel API klidin
Google Teksto ko Lav #text-to-speech#audio#gemini

Tekst-tar-vorbipen 30 glasantar, but-vorbengo dialogosa, stiloskere instrukcijenca thaj Flash vaj Pro modeloske kidipena

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

Vakeripasko teksto vaš Gemini TTS, savo lel andre čhibeske instrukcije vaš stilo, ritmo, akcento thaj emocia, sar 'Say cheerfully: Have a wonderful day!'. Inline markera sar [slowly], [whispering], [excited], thaj [extremely fast] kontrolinen vi ritmo thaj stilo. But-vakerutne mangena lines startarde aliasenca andar speakers field, sar 'Alice: Hello!\nBob: Hi!'.

Lučhe style_instructions · output_format · voice · model · 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.

standardno gemini-2.5-flash-tts

Gemini TTS modelosko izboro. Vaš najlačhi kvaliteta ande strukturime workflowura sar audiobooks, podcastura vaj customer support, labar `gemini-2.5-pro-tts`.

Vakeripaski čhib vaš multilingual synthesis: muk les avri te mukhes le modelos te džanel čhib andar tiro teksto, vaj del les te vodis o vakerdo rezultato. Si 60+ čhiben ande Preview thaj 24 ande GA.

standardno 1

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

Vakerutnesko konfiguracia savo podžarin `gemini-2.5-pro-tts` thaj `gemini-2.5-flash-tts`, numa na `gemini-2.5-flash-lite-preview-tts`. Kana del les, aver voja ginaven aver kotorra le tekstoske; vaš sako vakerutno del jekh voja thaj speaker_id alias savo si pherdo le promptoske prefixura.

POST /run/gemini-tts?wait=20 hesab → $0.03
# 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-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 TTS

Konvertíjin dži 50,000 karakterenge tekst andre vakeripe. Alosar jekh `voice`, thaj jekh `model` gemini-2.5-flash-tts vaj gemini-2.5-pro-tts. `style_instructions` (dži 4000 karakterenge) guidíjin o delivery, thaj `speakers` lel 2 dži 10 entry vaš but-glasa skriptura. Optional `language_code`, `temperature` 0 dži 2, thaj wav, mp3 vaj ogg_opus rezultato.

Parametra

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 50,000 simbolura
Vakeripasko teksto vaš Gemini TTS, savo lel andre čhibeske instrukcije vaš stilo, ritmo, akcento thaj emocia, sar 'Say cheerfully: Have a wonderful day!'. Inline markera sar [slowly], [whispering], [excited], thaj [extremely fast] kontrolinen vi ritmo thaj stilo. But-vakerutne mangena lines startarde aliasenca andar speakers field, sar 'Alice: Hello!\nBob: Hi!'.
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.
modelopcionalno
Tipenum
standardnogemini-2.5-flash-tts
gemini-2.5-flash-ttsgemini-2.5-pro-tts
Gemini TTS modelosko izboro. Vaš najlačhi kvaliteta ande strukturime workflowura sar audiobooks, podcastura vaj customer support, labar `gemini-2.5-pro-tts`.
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)
Vakeripaski čhib vaš multilingual synthesis: muk les avri te mukhes le modelos te džanel čhib andar tiro teksto, vaj del les te vodis o vakerdo rezultato. Si 60+ čhiben ande Preview thaj 24 ande GA.
speakersopcionalno
Tipobject[]
≤ 10 artiklura≥ 2 artiklura
Vakerutnesko konfiguracia savo podžarin `gemini-2.5-pro-tts` thaj `gemini-2.5-flash-tts`, numa na `gemini-2.5-flash-lite-preview-tts`. Kana del les, aver voja ginaven aver kotorra le tekstoske; vaš sako vakerutno del jekh voja thaj speaker_id alias savo si pherdo le promptoske prefixura.
speakers[].voicetrubul
Tipenum
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKore
+14 averLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
Preset voja dindi kadale vakerutneske.
speakers[].speaker_idtrubul
Tipstring
Vakerutnesko alias savo si numa alfanumericko thaj bi whitespace. Identifikisar le vakerutnes prefixosar le promptosko tekstosa, sar 'Alice: Hello! Bob: Hi there!'.
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-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": 30,
    "usd": "0.03",
    "charged": 30,
    "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-tts.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt