Peke ki ngā ihirangi

Zonos2 Text to Speech

Whakauru

id tauira zonos2
# 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/zonos2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# 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"

Tae atu ki te $ 0.02 mō ia whakahaerenga ka utua mō te whakamahinga tūturu, ka whakahokia te toenga Whakahaerehia ki tēnei whārangi

Tikina he kī API
Zyphra Kuputuhi ki te Kōrero Ngā tāuru tohutoro #text-to-speech#tts#voice-cloning

TTS whakatauira reo reo-maha me ngā mana tīpako me te kōwhiringa i waenga i te ōritenga tata, te tuku whakapuaki rānei

Zyphra · 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
Whakataka he kōnae,

Ororongo e whakarato ana i te reo pūtake mō te tārua.

Arā atu language · temperature · top_p · min_p · top_k · max_tokens · seed · accurate_mode · clean_speaker_background · enable_safety_checker
taunoa en_us

Te kōwhiringa reo mō te whakariterite kuputuhi, ka hipa ki te kore te waehere e kotahi o ēnei: en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn, ko.

taunoa 1.15

Pāmahana i whakamahia mō te sampling.

taunoa 0

Tūponotanga mō te sampling karihi; tautuhia ki te 0 hei mono.

taunoa 0.18

Paepae tūponotanga mō te sampling tūponotanga-iti.

taunoa 106

Tapahanga mō te sampling top-k; tautuhia ki te 0 hei mono.

Te tepenga whakaputanga anga-ororongo, ka whakamahi i te tepenga horopaki o te tauira ki te kore e tukuna he mōrahi.

Kākano e taea ai ngā hua whakahoki anō; ka kōwhiria matapōkeretia mēnā ka waiho.

POST /run/zonos2?wait=20 utu → $ 0.02
# 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/zonos2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# 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ō Zonos2 Text to Speech

Ka whakatauira reo mai i `reference_audio_url` ka pānui i te kuputuhi, ā, ka whakahoki ororongo WAV 44.1kHz mono me te kākano i whakamahia. Mā `language` e whakarite te whakariterite kuputuhi mō en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn me ko. Mā `accurate_mode` e whakawhiti i waenga i te pātata o te reo me te whakapuakitanga, ā, ka taea te whakatika i te tīpako mā `temperature`, `top_p`, `min_p`, `top_k` me `max_tokens` (tae atu ki te 6144).

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
reference_audio_urle hiahiatia ana
Momourl · audio
Ororongo e whakarato ana i te reo pūtake mō te tārua.
languagekōwhiringa
Momostring
Taunoaen_us
Te kōwhiringa reo mō te whakariterite kuputuhi, ka hipa ki te kore te waehere e kotahi o ēnei: en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn, ko.
seedkōwhiringa
Momointeger | null
0 – 2,147,483,647
Kākano e taea ai ngā hua whakahoki anō; ka kōwhiria matapōkeretia mēnā ka waiho.
accurate_modekōwhiringa
Momoboolean
Taunoatrue
Whakaōrite reo ki te whakaputa āhua: mā True e manakohia ai te ōrite tata ake, engari mā False e manakohia ai te kōrero whai-āhua ake.
clean_speaker_backgroundkōwhiringa
Momoboolean
Taunoafalse
E tohu ana he papamuri mā te ororongo tohutoro.
temperaturekōwhiringa
Momonumber
Taunoa1.15
0 – 2
Pāmahana i whakamahia mō te sampling.
top_pkōwhiringa
Momonumber
Taunoa0
0 – 1
Tūponotanga mō te sampling karihi; tautuhia ki te 0 hei mono.
min_pkōwhiringa
Momonumber
Taunoa0.18
0 – 1
Paepae tūponotanga mō te sampling tūponotanga-iti.
top_kkōwhiringa
Momointeger
Taunoa106
0 – 2,048
Tapahanga mō te sampling top-k; tautuhia ki te 0 hei mono.
max_tokenskōwhiringa
Momointeger | null
1 – 6,144
Te tepenga whakaputanga anga-ororongo, ka whakamahi i te tepenga horopaki o te tauira ki te kore e tukuna he mōrahi.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
e hiahiatia ana

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "zonos2",
  "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": 20,
    "usd": "0.02",
    "charged": 20,
    "refunded": 0
  },
  "input": {
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "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
    },
    "seed": 42
  },
  "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}Ororongo putanga i te hōputu WAV, me te auau tauira 44.1kHz me te hongere mono.
seed
integerTe uara kākano i whakamahia i te whakaputanga.

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