ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Zonos2 Text to Speech

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id 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"

ਹਰ ਰਨ ਲਈ $0.02 ਤੱਕ ਅਸਲ ਵਰਤੋਂ ਅਨੁਸਾਰ ਚਾਰਜ ਕੀਤਾ ਜਾਂਦਾ ਹੈ, ਬਾਕੀ ਦੀ ਰਕਮ ਵਾਪਸੀ ਹੁੰਦੀ ਹੈ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Zyphra ਟੈਕਸਟ ਤੋਂ ਬੋਲੀ ਹਵਾਲਾ ਇਨਪੁੱਟ #text-to-speech#tts#voice-cloning

ਸੈਂਪਲਿੰਗ ਨਿਯੰਤਰਣਾਂ ਅਤੇ ਨੇੜਲੇ ਮੇਲ ਜਾਂ ਭਾਵਪੂਰਨ ਡਿਲਿਵਰੀ ਵਿਚਕਾਰ ਚੋਣ ਵਾਲਾ ਬਹੁਭਾਸ਼ੀ ਵੌਇਸ-ਕਲੋਨਿੰਗ TTS

Zyphra · ਆਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਕਲੋਨਿੰਗ ਲਈ ਸਰੋਤ ਆਵਾਜ਼ ਪ੍ਰਦਾਨ ਕਰਨ ਵਾਲੀ ਆਡੀਓ।

ਉੱਨਤ language · temperature · top_p · min_p · top_k · max_tokens · seed · accurate_mode · clean_speaker_background · enable_safety_checker
ਡਿਫ਼ਾਲਟ en_us

ਟੈਕਸਟ normalization ਲਈ ਭਾਸ਼ਾ ਦੀ ਚੋਣ; ਇਸਨੂੰ ਛੱਡ ਦਿੱਤਾ ਜਾਂਦਾ ਹੈ ਜਦ ਤੱਕ ਕੋਡ ਇਨ੍ਹਾਂ ਵਿੱਚੋਂ ਇੱਕ ਨਾ ਹੋਵੇ: en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn, ko।

ਡਿਫ਼ਾਲਟ 1.15

ਸੈਂਪਲਿੰਗ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਤਾਪਮਾਨ।

ਡਿਫ਼ਾਲਟ 0

nucleus sampling ਦੀ probability; ਇਸਨੂੰ ਅਸਮਰੱਥ ਕਰਨ ਲਈ 0 ਸੈੱਟ ਕਰੋ।

ਡਿਫ਼ਾਲਟ 0.18

minimum-probability sampling ਲਈ probability threshold।

ਡਿਫ਼ਾਲਟ 106

top-k sampling ਲਈ cutoff; ਇਸਨੂੰ ਅਸਮਰੱਥ ਕਰਨ ਲਈ 0 ਸੈੱਟ ਕਰੋ।

ਆਡੀਓ-ਫ੍ਰੇਮ ਸਿਰਜਣਾ ਦੀ ਸੀਮਾ; ਜਦ ਤੱਕ ਵੱਧ ਤੋਂ ਵੱਧ ਮੁੱਲ ਨਾ ਦਿੱਤਾ ਜਾਵੇ, ਮਾਡਲ ਦੀ context limit ਵਰਤੀ ਜਾਂਦੀ ਹੈ।

ਦੁਹਰਾਉਣਯੋਗ ਨਤੀਜੇ ਚਾਲੂ ਕਰਨ ਵਾਲੀ ਸੀਡ; ਨਾ ਦਿੱਤੇ ਜਾਣ 'ਤੇ ਬੇਤਰਤੀਬ ਚੁਣੀ ਜਾਂਦੀ ਹੈ।

POST /run/zonos2?wait=20 ਕੋਟ → $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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Zonos2 Text to Speech ਬਾਰੇ

`reference_audio_url` ਤੋਂ ਆਵਾਜ਼ ਦੀ ਨਕਲ ਕਰਦਾ ਹੈ ਅਤੇ ਟੈਕਸਟ ਬੋਲਦਾ ਹੈ, ਵਰਤੇ ਗਏ ਸੀਡ ਦੇ ਨਾਲ 44.1kHz ਮੋਨੋ WAV ਆਡੀਓ ਵਾਪਸ ਕਰਦਾ ਹੈ। `language` en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn ਅਤੇ ko ਲਈ ਟੈਕਸਟ ਨਾਰਮਲਾਈਜ਼ੇਸ਼ਨ ਸੈੱਟ ਕਰਦਾ ਹੈ। `accurate_mode` ਆਵਾਜ਼ ਦੀ ਨੇੜਤਾ ਅਤੇ ਅਭਿਵਿਅਕਤੀਸ਼ੀਲਤਾ ਵਿਚਕਾਰ ਸੰਤੁਲਨ ਕਰਦਾ ਹੈ, ਅਤੇ ਸੈਂਪਲਿੰਗ ਨੂੰ `temperature`, `top_p`, `min_p`, `top_k` ਅਤੇ `max_tokens` (ਵੱਧ ਤੋਂ ਵੱਧ 6144) ਰਾਹੀਂ ਟਿਊਨ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
reference_audio_urlਲੋੜੀਂਦਾ
ਕਿਸਮurl · audio
ਕਲੋਨਿੰਗ ਲਈ ਸਰੋਤ ਆਵਾਜ਼ ਪ੍ਰਦਾਨ ਕਰਨ ਵਾਲੀ ਆਡੀਓ।
languageਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟen_us
ਟੈਕਸਟ normalization ਲਈ ਭਾਸ਼ਾ ਦੀ ਚੋਣ; ਇਸਨੂੰ ਛੱਡ ਦਿੱਤਾ ਜਾਂਦਾ ਹੈ ਜਦ ਤੱਕ ਕੋਡ ਇਨ੍ਹਾਂ ਵਿੱਚੋਂ ਇੱਕ ਨਾ ਹੋਵੇ: en_us, en_gb, fr_fr, de, es, it, pt_br, ja, cmn, ko।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
0 – 2,14,74,83,647
ਦੁਹਰਾਉਣਯੋਗ ਨਤੀਜੇ ਚਾਲੂ ਕਰਨ ਵਾਲੀ ਸੀਡ; ਨਾ ਦਿੱਤੇ ਜਾਣ 'ਤੇ ਬੇਤਰਤੀਬ ਚੁਣੀ ਜਾਂਦੀ ਹੈ।
accurate_modeਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਆਵਾਜ਼ ਦੇ ਮੇਲ ਅਤੇ ਭਾਵਪੂਰਨਤਾ ਵਿਚਕਾਰ ਤਰਜੀਹ: True ਵਧੇਰੇ ਨਜ਼ਦੀਕੀ ਮੇਲ ਨੂੰ ਤਰਜੀਹ ਦਿੰਦਾ ਹੈ, ਜਦਕਿ False ਵਧੇਰੇ ਭਾਵਪੂਰਨ ਬੋਲੀ ਨੂੰ।
clean_speaker_backgroundਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਦਰਸਾਉਂਦਾ ਹੈ ਕਿ ਹਵਾਲਾ ਆਡੀਓ ਦਾ background ਸਾਫ਼ ਹੈ।
temperatureਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ1.15
0 – 2
ਸੈਂਪਲਿੰਗ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਤਾਪਮਾਨ।
top_pਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ0
0 – 1
nucleus sampling ਦੀ probability; ਇਸਨੂੰ ਅਸਮਰੱਥ ਕਰਨ ਲਈ 0 ਸੈੱਟ ਕਰੋ।
min_pਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ0.18
0 – 1
minimum-probability sampling ਲਈ probability threshold।
top_kਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ106
0 – 2,048
top-k sampling ਲਈ cutoff; ਇਸਨੂੰ ਅਸਮਰੱਥ ਕਰਨ ਲਈ 0 ਸੈੱਟ ਕਰੋ।
max_tokensਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
1 – 6,144
ਆਡੀਓ-ਫ੍ਰੇਮ ਸਿਰਜਣਾ ਦੀ ਸੀਮਾ; ਜਦ ਤੱਕ ਵੱਧ ਤੋਂ ਵੱਧ ਮੁੱਲ ਨਾ ਦਿੱਤਾ ਜਾਵੇ, ਮਾਡਲ ਦੀ context limit ਵਰਤੀ ਜਾਂਦੀ ਹੈ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
false ਸੈੱਟ ਕਰਕੇ ਸਕ੍ਰੀਨਿੰਗ ਨੂੰ ਢਿੱਲਾ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜੇ ਕਾਲਰ ਅਧਿਕਾਰਤ ਹੋਵੇ।
ਲੋੜੀਂਦਾ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
audio
object {url, content_type, file_name, file_size}WAV ਫਾਰਮੈਟ ਵਿੱਚ ਆਉਟਪੁੱਟ ਆਡੀਓ, 44.1kHz sample rate ਅਤੇ mono channel ਦੇ ਨਾਲ।
seed
integerਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤਾ ਗਿਆ ਸੀਡ ਮੁੱਲ।

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/zonos2.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt