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

Async Text to Speech Pro V1.0

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

ਮਾਡਲ id async/tts-pro/v1.0
# 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/async/tts-pro/v1.0?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  }'

# 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.001 1 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Async ਟੈਕਸਟ ਤੋਂ ਬੋਲੀ ਲਿਪਸਿੰਕ #text-to-speech#voice-clone#lipsync

ਆਵਾਜ਼ ਚੋਣ, ਵਿਕਲਪਿਕ ਵੌਇਸ ਕਲੋਨਿੰਗ ਅਤੇ ਛੇ ਲਾਜ਼ਮੀ-ਭਾਸ਼ਾ ਵਿਕਲਪਾਂ ਵਾਲਾ ਟੈਕਸਟ-ਟੂ-ਸਪੀਚ

Async · ਆਡੀਓ

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ

ਬੋਲੀ ਵਜੋਂ ਸੰਸ਼ਲੇਸ਼ਿਤ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਟੈਕਸਟ ਸਮੱਗਰੀ।

•ਲੋੜੀਂਦਾ

ਬੋਲੀ ਸੰਸ਼ਲੇਸ਼ਣ ਲਈ ਚੁਣੀ ਗਈ ਆਵਾਜ਼।

ਉੱਨਤ language · output_format
language

ਸੰਸ਼ਲੇਸ਼ਣ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਭਾਸ਼ਾ, ISO 639-1 ਦੀ ਵਰਤੋਂ ਨਾਲ ਨਿਰਧਾਰਤ।

ਸਿਰਜੇ ਗਏ ਆਡੀਓ ਦੀ ਸੰਰਚਨਾ।

POST /run/async/tts-pro/v1.0?wait=20 ਕੋਟ → $0.001
# 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/async/tts-pro/v1.0?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  }'

# 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 ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Async Text to Speech Pro V1.0 ਬਾਰੇ

ਚੁਣੇ ਹੋਏ `voice` ਆਬਜੈਕਟ ਦੀ ਵਰਤੋਂ ਕਰਕੇ `transcript` ਨੂੰ ਬੋਲੀ ਵਿੱਚ ਬਦਲਦਾ ਹੈ। ਵਿਕਲਪਿਕ `language` ਪੈਰਾਮੀਟਰ ਸੰਸ਼ਲੇਸ਼ਣ ਨੂੰ English, French, Spanish, German, Italian ਜਾਂ Portuguese ਵਿੱਚ ਲਾਜ਼ਮੀ ਕਰਦਾ ਹੈ। ਇੱਕ `output_format` ਆਬਜੈਕਟ ਆਡੀਓ ਨੂੰ ਕੌਂਫ਼ਿਗਰ ਕਰਦਾ ਹੈ, ਅਤੇ ਨਤੀਜੇ ਵਿੱਚ ਆਡੀਓ ਫ਼ਾਈਲ, ਇਸਦੀ MIME ਕਿਸਮ ਅਤੇ ਬਾਈਟਾਂ ਵਿੱਚ ਇਸਦਾ ਆਕਾਰ ਸ਼ਾਮਲ ਹੁੰਦਾ ਹੈ। ਖ਼ਾਸ ਆਵਾਜ਼ ਚੁਣਨ ਵਾਲੇ ਵੌਇਸਓਵਰਾਂ ਲਈ ਉਚਿਤ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
transcriptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਬੋਲੀ ਵਜੋਂ ਸੰਸ਼ਲੇਸ਼ਿਤ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਟੈਕਸਟ ਸਮੱਗਰੀ।
voiceਲੋੜੀਂਦਾ
ਕਿਸਮobject
ਬੋਲੀ ਸੰਸ਼ਲੇਸ਼ਣ ਲਈ ਚੁਣੀ ਗਈ ਆਵਾਜ਼।
voice.nameਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟJennie
JennieStellaMaxHayesElaraCleoFisherCorinThaddeusLucinaAcadiaHuxleyWinsletJethroElioRupert
+84 ਹੋਰEiraNyraArianLilyPierceKaelaElowenFreyaLennyAlessaPandoraFiaAbbottKaelOrlaSableMarnieSeraVirelLioraRivenElysDreenaRheaVelaNymeraIsoldeLirienZellaAvennaMirelleCaliaLuneaLucanTarianArloJovanNeronZivenDaxOrienLiorEryxTyrenNoxElricVarianZoranMiroDalenRonixJarekNyxieSorenVionaSeleneRachielCorbinAbigailFaithKimberlyDaveGraceAldenRenlyVioletJoelXavierEsmeraldaRobertLilaBrooksLennoxVanessaSimonNyomiJackPenelopeBraydenAbelNellieConnieAndrewLincoln
ਵਰਤਣ ਲਈ ਨਾਮਿਤ ਪ੍ਰੀਸੈੱਟ ਆਵਾਜ਼। ਜੇ `id` ਦਿੱਤਾ ਗਿਆ ਹੋਵੇ ਤਾਂ ਇਸਦਾ ਕੋਈ ਪ੍ਰਭਾਵ ਨਹੀਂ।
output_formatਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਸਿਰਜੇ ਗਏ ਆਡੀਓ ਦੀ ਸੰਰਚਨਾ।
output_format.containerਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟmp3
mp3raw
ਸਿਰਜੇ ਗਏ ਆਡੀਓ ਦਾ ਕੰਟੇਨਰ ਫਾਰਮੈਟ।
output_format.encodingਵਿਕਲਪਿਕ
ਕਿਸਮenum
pcm_s16lepcm_f32lepcm_mulaw
PCM ਐਨਕੋਡਿੰਗ, ਜੋ ਸਿਰਫ਼ ਕੰਟੇਨਰ 'raw' ਹੋਣ 'ਤੇ ਲਾਗੂ ਹੁੰਦੀ ਹੈ।
output_format.sample_rateਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ44100
8,000 – 48,000
ਆਉਟਪੁੱਟ ਦੀ ਸੈਂਪਲਿੰਗ ਫ੍ਰੀਕਵੈਂਸੀ, Hz ਵਿੱਚ।
output_format.bit_rateਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
32,000 – 3,20,000
ਆਉਟਪੁੱਟ ਦੀ ਬਿਟ ਦਰ; ਸਿਰਫ਼ 'mp3' ਕੰਟੇਨਰ 'ਤੇ ਲਾਗੂ।
languageਵਿਕਲਪਿਕ
ਕਿਸਮenum
enfresdeitpt
ਸੰਸ਼ਲੇਸ਼ਣ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਭਾਸ਼ਾ, ISO 639-1 ਦੀ ਵਰਤੋਂ ਨਾਲ ਨਿਰਧਾਰਤ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "async/tts-pro/v1.0",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  },
  "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
    },
    "content_type": "audio/mpeg",
    "size_bytes": 1
  },
  "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}
content_type
stringਆਡੀਓ MIME ਕਿਸਮ।
size_bytes
integerਆਡੀਓ ਦਾ ਆਕਾਰ, ਬਾਈਟਾਂ ਵਿੱਚ।

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