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

F5 TTS

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

ਮਾਡਲ id f5-tts
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/f5-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "gen_text": "Hello from Doitong. This is a short test sentence.",
    "ref_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "model_type": "F5-TTS"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ: $0.003 3 API ਕ੍ਰੈਡਿਟ · ≈ ₽0.32 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Open model ਟੈਕਸਟ ਤੋਂ ਬੋਲੀ ਹਵਾਲਾ ਇਨਪੁੱਟ #speech

F5-TTS ਜਾਂ E2-TTS ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਰੈਫਰੈਂਸ ਆਡੀਓ ਕਲਿੱਪ ਤੋਂ ਆਵਾਜ਼-ਕਲੋਨਿੰਗ ਸਪੀਚ ਸਿੰਥੇਸਿਸ

Open model · ਆਡੀਓ

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ

ਬੋਲੀ ਸੰਸ਼ਲੇਸ਼ਣ ਲਈ ਟੈਕਸਟ, 5000 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ।

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

ਹਵਾਲਾ ਆਡੀਓ ਫ਼ਾਈਲ ਦਾ URL।

model_type •ਲੋੜੀਂਦਾ

TTS ਸੰਸ਼ਲੇਸ਼ਣ ਲਈ ਮਾਡਲ ਦਾ ਨਾਮ।

ਉੱਨਤ ref_text · remove_silence
ਡਿਫ਼ਾਲਟ

TTS ਹਵਾਲਾ ਟੈਕਸਟ; ਇਸਨੂੰ ਛੱਡਣ ਨਾਲ ਬੋਲੀ-ਪਛਾਣ ਮਾਡਲ (ASR, Automatic Speech Recognition) ਰਾਹੀਂ ਸਵੈਚਲਿਤ ਸਿਰਜਣਾ ਚੁਣੀ ਜਾਂਦੀ ਹੈ।

POST /run/f5-tts?wait=20 ਕੋਟ → $0.003
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/f5-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "gen_text": "Hello from Doitong. This is a short test sentence.",
    "ref_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "model_type": "F5-TTS"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

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

F5 TTS ਬਾਰੇ

`ref_audio_url` ਵੱਲੋਂ ਦਿੱਤੀ ਰੈਫਰੈਂਸ ਕਲਿੱਪ ਦੀ ਆਵਾਜ਼ ਵਿੱਚ `gen_text` (ਵੱਧ ਤੋਂ ਵੱਧ 5000 ਅੱਖਰ) ਬੋਲਦਾ ਹੈ। `model_type` F5-TTS ਜਾਂ E2-TTS ਚੁਣਦਾ ਹੈ। ਜੇ `ref_text` ਖਾਲੀ ਹੋਵੇ, ਤਾਂ ਸਪੀਚ ਰਿਕਗਨਿਸ਼ਨ ਇਸਨੂੰ ਤਿਆਰ ਕਰਦਾ ਹੈ। `remove_silence` ਮੂਲ ਰੂਪ ਵਿੱਚ ਚਾਲੂ ਹੁੰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
gen_textਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਬੋਲੀ ਸੰਸ਼ਲੇਸ਼ਣ ਲਈ ਟੈਕਸਟ, 5000 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ।
ref_audio_urlਲੋੜੀਂਦਾ
ਕਿਸਮurl · audio
ਹਵਾਲਾ ਆਡੀਓ ਫ਼ਾਈਲ ਦਾ URL।
ref_textਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟ
TTS ਹਵਾਲਾ ਟੈਕਸਟ; ਇਸਨੂੰ ਛੱਡਣ ਨਾਲ ਬੋਲੀ-ਪਛਾਣ ਮਾਡਲ (ASR, Automatic Speech Recognition) ਰਾਹੀਂ ਸਵੈਚਲਿਤ ਸਿਰਜਣਾ ਚੁਣੀ ਜਾਂਦੀ ਹੈ।
model_typeਲੋੜੀਂਦਾ
ਕਿਸਮenum
F5-TTSE2-TTS
TTS ਸੰਸ਼ਲੇਸ਼ਣ ਲਈ ਮਾਡਲ ਦਾ ਨਾਮ।
remove_silenceਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਇਹ ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ ਕਿ ਆਡੀਓ ਫ਼ਾਈਲ ਵਿੱਚੋਂ ਚੁੱਪ ਹਟਾਈ ਜਾਵੇ ਜਾਂ ਨਹੀਂ।
ਲੋੜੀਂਦਾ

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

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "f5-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": {
    "gen_text": "Hello from Doitong. This is a short test sentence.",
    "ref_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "model_type": "F5-TTS"
  },
  "output": {
    "audio_url": {
      "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
audio_url
object {url, content_type, file_name, file_size}ਸੰਸ਼ਲੇਸ਼ਿਤ ਬੋਲੀ ਵਾਲੀ ਆਡੀਓ ਫ਼ਾਈਲ।

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