مواد پر جائیں

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.com/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

یہ درخواست: ⁨$0.003⁩ 3 API کریڈٹس اس صفحے پر چلائیں

API کلید حاصل کریں
Open model متن سے آواز حوالہ جاتی ان پٹس #speech

حوالہ آڈیو کلپ سے آواز کی کلوننگ پر مبنی آواز سنتھیسس، F5-TTS یا E2-TTS استعمال کرتے ہوئے

Open model · آڈیو

آپ کا پہلا نتیجہ یہاں آئے گا

ذیل میں درخواست بنائیں اور اپنی API کلید کے ساتھ چلائیں۔ آؤٹ پٹس ہمارے اسٹوریج میں کاپی ہو جاتے ہیں، ہمیشہ کے لیے یا مفت میں 7 دن تک محفوظ رہتے ہیں۔

درخواست بنائیں

کنٹرولز ماڈل اسکیما سے تیار ہوتے ہیں۔ آپ کے بدلنے کے ساتھ کوڈ اور قیمت اپ ڈیٹ ہوتے ہیں۔

•لازمی

speech synthesis کے لیے متن، زیادہ سے زیادہ 5000 حروف۔

•لازمی
فائل ڈراپ کریں، یا

حوالہ آڈیو فائل کا URL۔

model_type •لازمی

TTS synthesis کے لیے ماڈل کا نام۔

ایڈوانسڈ ref_text · remove_silence
ڈیفالٹ

TTS حوالہ متن؛ اسے چھوڑنے سے speech-recognition ماڈل (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.com/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.com/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` ڈیفالٹ طور پر on ہے۔

پیرامیٹرز

نامقسم ڈیفالٹمجاز تفصیل
gen_textلازمی
قسمstring
speech synthesis کے لیے متن، زیادہ سے زیادہ 5000 حروف۔
ref_audio_urlلازمی
قسمurl · audio
حوالہ آڈیو فائل کا URL۔
ref_textاختیاری
قسمstring
ڈیفالٹ
TTS حوالہ متن؛ اسے چھوڑنے سے speech-recognition ماڈل (ASR, Automatic Speech Recognition) کے ذریعے خودکار تخلیق منتخب ہوتی ہے۔
model_typeلازمی
قسمenum
F5-TTSE2-TTS
TTS synthesis کے لیے ماڈل کا نام۔
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.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_url
object {url, content_type, file_name, file_size}synthesized تقریر والی آڈیو فائل۔

AI ایجنٹس کے لیے: یہ صفحہ Markdown میں یہاں موجود ہے https://doitong.com/ur/developers/models/f5-tts.md. تمام ماڈلز اور گائیڈز: https://doitong.com/developers/llms.txt