Neidio i'r cynnwys

F5 TTS

Integreiddio

ID y model 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"

Y cais hwn: $0.003 3 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Open model Testun i Leferydd Mewnbynnau cyfeirio #speech

Synthesis lleferydd clonio llais o glip sain cyfeirio, gan ddefnyddio F5-TTS neu E2-TTS

Open model · Sain

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol

Testun ar gyfer synthesis lleferydd, wedi'i gyfyngu i 5000 o nodau.

•gofynnol
Gollyngwch ffeil, neu

URL ffeil sain gyfeirio.

model_type •gofynnol

Enw'r model ar gyfer synthesis TTS.

Uwch ref_text · remove_silence
rhagosodedig

Testun cyfeirio TTS; mae ei hepgor yn dewis cynhyrchu awtomatig drwy fodel adnabod lleferydd (ASR, Automatic Speech Recognition).

POST /run/f5-tts?wait=20 dyfynbris → $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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â F5 TTS

Yn llefaru `gen_text` (hyd at 5000 nod) yn llais y clip cyfeirio a roddir gan `ref_audio_url`. Mae `model_type` yn dewis F5-TTS neu E2-TTS. Os yw `ref_text` yn wag, mae adnabod lleferydd yn ei gynhyrchu. Mae `remove_silence` ymlaen yn ddiofyn.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
gen_textgofynnol
Mathstring
Testun ar gyfer synthesis lleferydd, wedi'i gyfyngu i 5000 o nodau.
ref_audio_urlgofynnol
Mathurl · audio
URL ffeil sain gyfeirio.
ref_textdewisol
Mathstring
Rhagosodedig
Testun cyfeirio TTS; mae ei hepgor yn dewis cynhyrchu awtomatig drwy fodel adnabod lleferydd (ASR, Automatic Speech Recognition).
model_typegofynnol
Mathenum
F5-TTSE2-TTS
Enw'r model ar gyfer synthesis TTS.
remove_silencedewisol
Mathboolean
Rhagosodedigtrue
Rheoli a yw distawrwydd yn cael ei dynnu o'r ffeil sain.
gofynnol

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
audio_url
object {url, content_type, file_name, file_size}Ffeil sain gyda'r lleferydd wedi'i syntheseiddio.

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/f5-tts.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt