Neidio i'r cynnwys

Eleven v4 Text to Speech

Integreiddio

ID y model elevenlabs/tts/eleven-v4
# 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/elevenlabs/tts/eleven-v4?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "[whispers] Okay, everyone, gather close. [excited] The bread is finally out of the oven. [laughs] Fine, fine, one slice each, but only if you promise to save one for me."
  }'

# 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"

Y cais hwn: $0.014 14 o gredydau API · ≈ ₽1.51 Ei redeg ar y dudalen hon

Cael allwedd API
ElevenLabs Testun i Leferydd #voiceover#expressive#timestamps

Model llais mwyaf mynegiannol ElevenLabs, gyda thagiau emosiwn mewnlin a stampiau amser geiriau.

Enghreifftiau

Allbwn · ~14 s
[whispers] Okay, everyone, gather close. [excited] The bread is finally out of the oven. [laughs] Fine, fine, one slice each, but only if you promise to save one for me.$0.014 · 14 o gredydau API

Adeiladu cais

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

•gofynnol 169 / 5000

Darparwch gynnwys lleferydd fel testun, gan farcio'r modd cyflwyno'n ddewisol â thagiau sain fel [whispering] neu nodi ynganiadau IPA rhwng slaesau.

rhagosodedig Rachel

Llais a ddewisir ar gyfer syntheseiddio lleferydd.

Uwch apply_text_normalization · language_code · output_format · stability · similarity_boost · seed · timestamps
apply_text_normalization rhagosodedig auto

Rheoli normaleiddio testun cyn cynhyrchu, gan gynnwys trin rhifau a dyddiadau.

Cod iaith ISO 639-1 a ddefnyddir wrth gynhyrchu lleferydd a normaleiddio testun.

rhagosodedig mp3_44100_128

Fformat sain a gynhyrchir, wedi'i bennu gan ddefnyddio'r patrwm codec_sample_rate_bitrate.

rhagosodedig 0.5

Mae sefydlogrwydd y llais yn cydbwyso cyflwyniad mynegiannol mewn gosodiadau is â chyflwyniad cyson mewn gosodiadau uwch.

rhagosodedig 0.75

Rheolydd tebygrwydd i'r llais cyfeirio, gyda chyfaddawd posibl o ran naturioldeb: mae ei gynyddu'n cryfhau'r cyfatebiaeth ond gall wneud i'r allbwn swnio'n llai naturiol.

Hadau a ddefnyddir i geisio canlyniadau atgynhyrchadwy; ni warentir ailadrodd yr un allbwn yn union.

POST /run/elevenlabs/tts/eleven-v4?wait=20 dyfynbris → $0.014
# 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/elevenlabs/tts/eleven-v4?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "[whispers] Okay, everyone, gather close. [excited] The bread is finally out of the oven. [laughs] Fine, fine, one slice each, but only if you promise to save one for me."
  }'

# 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"

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 â Eleven v4 Text to Speech

Mae Eleven v4 yn darllen testun yn uchel mewn lleisiau naturiol, emosiynol ac yn deall tagiau sain mewnlin fel [excited] neu [whispering], yn ogystal ag ynganiadau IPA. Dewiswch lais, tiwniwch sefydlogrwydd a thebygrwydd, gosodwch yr iaith, a dewiswch stampiau amser ar lefel gair. Fformatau MP3, PCM, Opus a theleffoni.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
textgofynnol
Mathstring
≤ 5,000 nod
Darparwch gynnwys lleferydd fel testun, gan farcio'r modd cyflwyno'n ddewisol â thagiau sain fel [whispering] neu nodi ynganiadau IPA rhwng slaesau.
voicedewisol
Mathstring
RhagosodedigRachel
Llais a ddewisir ar gyfer syntheseiddio lleferydd.
stabilitydewisol
Mathnumber
Rhagosodedig0.5
0 – 1
Mae sefydlogrwydd y llais yn cydbwyso cyflwyniad mynegiannol mewn gosodiadau is â chyflwyniad cyson mewn gosodiadau uwch.
similarity_boostdewisol
Mathnumber
Rhagosodedig0.75
0 – 1
Rheolydd tebygrwydd i'r llais cyfeirio, gyda chyfaddawd posibl o ran naturioldeb: mae ei gynyddu'n cryfhau'r cyfatebiaeth ond gall wneud i'r allbwn swnio'n llai naturiol.
seeddewisol
Mathinteger | null
0 – 4,294,967,295
Hadau a ddefnyddir i geisio canlyniadau atgynhyrchadwy; ni warentir ailadrodd yr un allbwn yn union.
language_codedewisol
Mathstring | null
Cod iaith ISO 639-1 a ddefnyddir wrth gynhyrchu lleferydd a normaleiddio testun.
output_formatdewisol
Mathenum
Rhagosodedigmp3_44100_128
mp3_22050_32mp3_44100_32mp3_44100_64mp3_44100_96mp3_44100_128mp3_44100_192pcm_8000pcm_16000pcm_22050pcm_24000pcm_44100pcm_48000ulaw_8000alaw_8000opus_48000_32opus_48000_64
+3 yn rhagoropus_48000_96opus_48000_128opus_48000_192
Fformat sain a gynhyrchir, wedi'i bennu gan ddefnyddio'r patrwm codec_sample_rate_bitrate.
apply_text_normalizationdewisol
Mathenum
Rhagosodedigauto
autoonoff
Rheoli normaleiddio testun cyn cynhyrchu, gan gynnwys trin rhifau a dyddiadau.
timestampsdewisol
Mathboolean
Rhagosodedigfalse
Rheoli a yw sain a gynhyrchir yn cael ei chyd-fynd â data amseru ar gyfer nodau unigol.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "elevenlabs/tts/eleven-v4",
  "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": 14,
    "usd": "0.014",
    "charged": 14,
    "refunded": 0
  },
  "input": {
    "text": "[excited] Hello! Welcome to the future of voice.",
    "voice": "Aria"
  },
  "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
    },
    "timestamps": []
  },
  "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"
  }
}
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
object {url, content_type, file_name, file_size}Ffeil sain a gynhyrchir drwy gynhyrchu.
timestamps
array of any | nullData amseru lleferydd a gynhyrchwyd, wedi'i chynnwys dim ond ar gyfer ceisiadau â `timestamps` wedi'i osod i True, gyda stamp amser ar gyfer pob gair.

Mwy o fodelau: Testun i Leferydd

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