Peke ki ngā ihirangi

Gemini 3.1 Flash Tts

Whakauru

id tauira 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"

Tēnei tono: $ 0.003 3 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Google Kuputuhi ki te Kōrero Tukutahi NgutuTere #lipsync#avatar

He tuhi-ki-te-kōrero Gemini 3.1 Flash me te whakahaere kāhua ā-raina, 30 ngā reo me te 10 ngā kaikōrero mōrahi

Google · Ororongo

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana 50 / 50000

Kupu speech-synthesis mō Gemini 3.1 Flash TTS; me tīmata ngā rārangi kaikōrero-maha ki ngā ingoa kē mai i te wāhanga speakers, pērā i 'Alice: Hello!\nBob: Hi!'. Ka taea te whakahaere taipitopito mā ngā tūtohu ororongo whai-āhua pērā i [sigh], [laughing], [whispering], me [short pause], mā ngā tohutohu reo māori ā-roto rānei mō te nako, kare ā-roto, tere, me te kāhua, pērā i 'Say cheerfully: Have a wonderful day!'.

Arā atu style_instructions · output_format · voice · language_code · temperature · speakers
0 / 4000

Ngā tohutohu reo māori kōwhiringa, ka noho wehe i te ihirangi kōrero, ka whakaurua ki mua i te tohutohu hei hanga i te whai-āhua, nako, tere, reo, me te kare ā-roto. Ko ētahi tauira ko 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', me 'Whisper mysteriously'.

output_format taunoa mp3

Hōputu mō te ororongo putanga: he kōnae kōpeke, iti hoki te mp3, ā, e taunakitia ana; he PCM kāore i kōpeketia i roto i te ipu WAV te wav, i te 24 kHz me te ororongo mono 16-bit; ka whakamahi te ogg_opus i te Opus i roto i te Ogg mō te taurite pai o te kounga me te rahi.

taunoa Kore

Kōwhiringa reo kaikōrero kotahi mai i ngā tatūkē rerekē 30; mā te tautuhi i te speakers ka kore tēnei kōwhiringa e hohe. Ko ngā kōwhiringa wahine rongonui ko Kore, he kaha, he ū tana tuku, ko Zephyr, he kanapa, he mārama, ko Aoede, he mahana, he rangi. Ko ngā kōwhiringa tāne rongonui ko Puck, he hihiri, he ora, me Charon, he mārie, he ngaio.

Whakakapi reo mō te synthesis reo-maha: ka kitea aunoa mai i te kupu ki te kore koe e tohu reo hei ārahi i te kōrero a te tauira.

taunoa 1

Tautuhinga matapōkeretanga kōrero, mai i te tuku arotahi, matapae i ngā tautuhinga iti, ki te tuku auaha, rerekē i ngā tautuhinga tiketike.

Whirihoranga reo e taea ai e ngā kaikōrero maha te pānui i ngā wāhanga motuhake o te kupu. Hoatu he reo ki ia kaikōrero me tētahi ingoa kē speaker_id e ōrite ana ki ngā tīmatanga o ngā tohutohu.

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Gemini 3.1 Flash Tts

Ka huri i tētahi `prompt` tae atu ki te 50000 pūāhua hei kōrero. Ka taea te ārahi i te tuku ā-raina, mā `style_instructions` rānei. Kōwhiria tētahi o ngā reo 30, tautuhia `language_code`, whakamahia rānei `speakers` (2 ki te 10) mō te oro maha-kaiwhakōrero. Ko te putanga mp3, wav, ogg_opus rānei, me `temperature` mai i te 0 ki te 2.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
≤ 50,000 pūāhua
Kupu speech-synthesis mō Gemini 3.1 Flash TTS; me tīmata ngā rārangi kaikōrero-maha ki ngā ingoa kē mai i te wāhanga speakers, pērā i 'Alice: Hello!\nBob: Hi!'. Ka taea te whakahaere taipitopito mā ngā tūtohu ororongo whai-āhua pērā i [sigh], [laughing], [whispering], me [short pause], mā ngā tohutohu reo māori ā-roto rānei mō te nako, kare ā-roto, tere, me te kāhua, pērā i 'Say cheerfully: Have a wonderful day!'.
style_instructionskōwhiringa
Momostring | null
≤ 4,000 pūāhua
Ngā tohutohu reo māori kōwhiringa, ka noho wehe i te ihirangi kōrero, ka whakaurua ki mua i te tohutohu hei hanga i te whai-āhua, nako, tere, reo, me te kare ā-roto. Ko ētahi tauira ko 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', me 'Whisper mysteriously'.
voicekōwhiringa
Momoenum
TaunoaKore
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKore
+14 anōLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
Kōwhiringa reo kaikōrero kotahi mai i ngā tatūkē rerekē 30; mā te tautuhi i te speakers ka kore tēnei kōwhiringa e hohe. Ko ngā kōwhiringa wahine rongonui ko Kore, he kaha, he ū tana tuku, ko Zephyr, he kanapa, he mārama, ko Aoede, he mahana, he rangi. Ko ngā kōwhiringa tāne rongonui ko Puck, he hihiri, he ora, me Charon, he mārie, he ngaio.
language_codekōwhiringa
Momoenum
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 anōRussian (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)
Whakakapi reo mō te synthesis reo-maha: ka kitea aunoa mai i te kupu ki te kore koe e tohu reo hei ārahi i te kōrero a te tauira.
speakerskōwhiringa
Momoobject[]
Whirihoranga reo e taea ai e ngā kaikōrero maha te pānui i ngā wāhanga motuhake o te kupu. Hoatu he reo ki ia kaikōrero me tētahi ingoa kē speaker_id e ōrite ana ki ngā tīmatanga o ngā tohutohu.
temperaturekōwhiringa
Momonumber
Taunoa1
0 – 2
Tautuhinga matapōkeretanga kōrero, mai i te tuku arotahi, matapae i ngā tautuhinga iti, ki te tuku auaha, rerekē i ngā tautuhinga tiketike.
output_formatkōwhiringa
Momoenum
Taunoamp3
wavmp3ogg_opus
Hōputu mō te ororongo putanga: he kōnae kōpeke, iti hoki te mp3, ā, e taunakitia ana; he PCM kāore i kōpeketia i roto i te ipu WAV te wav, i te 24 kHz me te ororongo mono 16-bit; ka whakamahi te ogg_opus i te Opus i roto i te Ogg mō te taurite pai o te kounga me te rahi.
e hiahiatia ana

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
audio
object {url, content_type, file_name, file_size}Te kōnae ororongo i whakaputaina.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/gemini-3.1-flash-tts.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt