Preskoči na vsebino

F5 TTS

Integracija

ID modela 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"

Ta zahteva: 0,003 $ 3 API krediti Zaženi na tej strani

Pridobi ključ API
Open model Besedilo v govor Referenčni vnosi #speech

Sinteza govora s kloniranjem glasu iz referenčnega zvočnega posnetka z uporabo F5-TTS ali E2-TTS

Open model · Zvok

Tukaj bo vaš prvi rezultat

Spodaj sestavite zahtevo in jo zaženite s svojim ključem API. Izhodi se kopirajo v našo shrambo, kjer se hranijo za vedno ali 7 dni brezplačno.

Ustvari zahtevo

Kontrolniki se ustvarijo iz sheme modela. Koda in cena se posodobita, ko ju spreminjate.

•obvezno

Besedilo za sintezo govora, omejeno na 5000 znakov.

•obvezno
Spustite datoteko ali

URL referenčne zvočne datoteke.

model_type •obvezno

Ime modela za sintezo TTS.

Napredno ref_text · remove_silence
privzeto

Referenčno besedilo TTS; če ga izpustite, se izbere samodejno generiranje z modelom za prepoznavanje govora (ASR, Automatic Speech Recognition).

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

Zaženi to zahtevo

Vaš ključ ostane v tem brskalniku: pošlje se samo v Doitong API in shrani v localStorage samo, če označite možnost Zapomni si. Pridobi ključ API

O modelu F5 TTS

Izgovori `gen_text` (do 5000 znakov) z glasom referenčnega posnetka, podanega z `ref_audio_url`. `model_type` izbere F5-TTS ali E2-TTS. Če je `ref_text` prazen, ga ustvari prepoznavanje govora. `remove_silence` je privzeto vključen.

Parametri

ImeVrsta PrivzetoDovoljeno Opis
gen_textobvezno
Vrstastring
Besedilo za sintezo govora, omejeno na 5000 znakov.
ref_audio_urlobvezno
Vrstaurl · audio
URL referenčne zvočne datoteke.
ref_textneobvezno
Vrstastring
Privzeto
Referenčno besedilo TTS; če ga izpustite, se izbere samodejno generiranje z modelom za prepoznavanje govora (ASR, Automatic Speech Recognition).
model_typeobvezno
Vrstaenum
F5-TTSE2-TTS
Ime modela za sintezo TTS.
remove_silenceneobvezno
Vrstaboolean
Privzetotrue
Določa, ali se iz zvočne datoteke odstrani tišina.
obvezno

Parametri datotek sprejmejo javni https:// URL, podatkovni URI data: do 10 MB ali file_url naložene datoteke. Datoteke

Izhod

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"
  }
}
Vaše datoteke, vaša izbiraVsak outputs[].url je kopija v naši shrambi: hrani se za vedno (plačilo na GB-mesec) ali 7 dni brezplačno, glede na nastavitev računa ali ?storage=.
Enaka struktura pri vsakem modelutype, url, content_type, width, height in duration za slike, videoposnetke in zvok. output je lasten objekt rezultata modela.
Polja izhoda
audio_url
object {url, content_type, file_name, file_size}Zvočna datoteka s sintetiziranim govorom.

Za agente AI: ta stran je v obliki Markdown na voljo na https://doitong.com/sl/developers/models/f5-tts.md. Vsi modeli in vodniki: https://doitong.com/developers/llms.txt