Neidio i'r cynnwys

Elevenlabs

Integreiddio

ID y model elevenlabs/text-to-dialogue/eleven-v3
# 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/text-to-dialogue/eleven-v3?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": [
      {
        "text": "[applause] Thank you all for coming tonight! Today we have a very special guest with us.",
        "voice": "Aria"
      },
      {
        "text": "[gulps] ... [strong canadian accent] [excited] Hello everyone! Thank you all for having me tonight on this special day.",
        "voice": "Charlotte"
      }
    ]
  }'

# 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.10 100 o gredydau API · ≈ ₽10.75 Ei redeg ar y dudalen hon

Cael allwedd API
ElevenLabs Testun i Leferydd #audio

Yn troi rhestr o barau testun a ID llais yn drac sain deialog aml-siaradwr

ElevenLabs · 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

Cofnodion deialog i'w syntheseiddio fel lleferydd, pob un yn paru testun ag ID llais.

Uwch language_code · stability · seed · use_speaker_boost · pronunciation_dictionary_locators

Pennwch iaith ofynnol y model gyda chod ISO 639-1; mae'r cais yn methu â gwall oni bai bod y model yn cynnal y cod hwnnw.

Sefydlogrwydd ac amrywiad llais ar draws cynyrchiadau, wedi'u cyfyngu i 0.0, 0.5, neu 1.0; caiff mewnbynnau y tu allan i'r set hon eu talgrynnu i'r gwerth derbyniol agosaf. Gall gosodiadau uwch gyfyngu ar emosiwn a swnio'n undonog, tra bo gosodiadau is yn ehangu ystod emosiynol y llais.

Hadau sy'n rheoli haprwydd er mwyn atgynhyrchu canlyniadau.

rhagosodedig []

Cyflenwch hyd at 3 lleolydd geiriadur ynganiad yn y drefn y dylent effeithio ar y testun. Mae pob lleolydd yn adnabod geiriadur wrth id a version_id.

POST /run/elevenlabs/text-to-dialogue/eleven-v3?wait=20 dyfynbris → $0.10
# 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/text-to-dialogue/eleven-v3?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": [
      {
        "text": "[applause] Thank you all for coming tonight! Today we have a very special guest with us.",
        "voice": "Aria"
      },
      {
        "text": "[gulps] ... [strong canadian accent] [excited] Hello everyone! Thank you all for having me tonight on this special day.",
        "voice": "Charlotte"
      }
    ]
  }'

# 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 â Elevenlabs

Yn adeiladu deialog lafar o `inputs`, sef rhestr ofynnol lle mae pob cofnod yn paru testun ag ID llais. Gellir tiwnio ymddygiad y llais gyda `stability` (0 i 1) a `use_speaker_boost`. Gallwch orfodi iaith gyda `language_code` a defnyddio hyd at 3 locator geiriadur ynganu. Derbynnir `seed` ar gyfer atgynyrchiadwyedd a chaiff ei ddychwelyd gyda’r sain.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
inputsgofynnol
Mathobject[]
Cofnodion deialog i'w syntheseiddio fel lleferydd, pob un yn paru testun ag ID llais.
inputs[].textgofynnol
Mathstring
Testun sy'n cynnwys y ddeialog.
inputs[].voicegofynnol
Mathstring
Enw neu ID llais a ddewiswyd ar gyfer cynhyrchu.
stabilitydewisol
Mathnumber | null
0 – 1
Sefydlogrwydd ac amrywiad llais ar draws cynyrchiadau, wedi'u cyfyngu i 0.0, 0.5, neu 1.0; caiff mewnbynnau y tu allan i'r set hon eu talgrynnu i'r gwerth derbyniol agosaf. Gall gosodiadau uwch gyfyngu ar emosiwn a swnio'n undonog, tra bo gosodiadau is yn ehangu ystod emosiynol y llais.
use_speaker_boostdewisol
Mathboolean | null
Gwelliant tebygrwydd siaradwr sy'n ychwanegu hwyrni oherwydd cynnydd bach yn y llwyth cyfrifiadurol. Mae ei alluogi yn gwneud i'r llais ymdebygu'n agosach i'r siaradwr gwreiddiol.
pronunciation_dictionary_locatorsdewisol
Mathobject[]
Rhagosodedig[]
Cyflenwch hyd at 3 lleolydd geiriadur ynganiad yn y drefn y dylent effeithio ar y testun. Mae pob lleolydd yn adnabod geiriadur wrth id a version_id.
pronunciation_dictionary_locators[].pronunciation_dictionary_iddewisol
Mathstring | null
Dynodwr ar gyfer y geiriadur ynganiad.
pronunciation_dictionary_locators[].version_iddewisol
Mathstring | null
Dewiswch fersiwn benodol o'r geiriadur ynganiad yn ôl ei ID, neu gadewch hwn heb ei osod i ddefnyddio'r fersiwn ddiweddaraf.
seeddewisol
Mathinteger | null
Hadau sy'n rheoli haprwydd er mwyn atgynhyrchu canlyniadau.
language_codedewisol
Mathstring | null
Pennwch iaith ofynnol y model gyda chod ISO 639-1; mae'r cais yn methu â gwall oni bai bod y model yn cynnal y cod hwnnw.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "elevenlabs/text-to-dialogue/eleven-v3",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "inputs": [
      {
        "text": "[applause] Thank you all for coming tonight! Today we have a very special guest with us.",
        "voice": "Aria"
      },
      {
        "text": "[gulps] ... [strong canadian accent] [excited] Hello everyone! Thank you all for having me tonight on this special day.",
        "voice": "Charlotte"
      }
    ]
  },
  "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
    },
    "seed": 42
  },
  "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.
seed
integerHadau sy'n rheoli haprwydd er mwyn atgynhyrchu canlyniadau.

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