Neidio i'r cynnwys

Chatterbox · Text to Speech

Integreiddio

ID y model chatterbox/text-to-speech
# 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/chatterbox/text-to-speech?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence."
  }'

# 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.002 2 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Resemble AI Testun i Leferydd #text-to-speech

Testun-i-leferydd Saesneg gyda thagiau emosiynol, rheoli gorliwio ac arddull sain gyfeirio ddewisol

Resemble AI · 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 synthesis lleferydd, a all gynnwys tagiau emosiynol: <laugh>, <chuckle>, <sigh>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>. Ni chaiff y testun fod yn fwy na 5000 nod.

Uwch audio · exaggeration · temperature · cfg · seed
audio_url rhagosodedig https://storage.googl...
Gollyngwch ffeil, neu

Sain gyfeirio y mae'r model yn ceisio paru ei naws a'i steil yn allbwn y lleferydd. Darparwch URL ffeil sain os ydych am ddefnyddio'r cyfeirnod dewisol hwn.

rhagosodedig 0.25

Rheolaeth gorliwio lleferydd: mae'r gorliwio mwyaf yn cyfateb i 1.0, tra bod 0.0 yn diffodd gorliwio.

rhagosodedig 0.7

Tymheredd cynhyrchu; mae ei gynyddu yn gwneud y canlyniadau'n fwy creadigol.

rhagosodedig 0.5

Hadau cynhyrchu sain; mae 0 yn dewis hedyn ar hap. Er mwyn atgynhyrchu canlyniadau, defnyddiwch werth sefydlog a gadewch bob priodwedd arall heb ei newid; dylai hyn atgynhyrchu'r ffeil sain yn union.

POST /run/chatterbox/text-to-speech?wait=20 dyfynbris → $0.002
# 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/chatterbox/text-to-speech?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence."
  }'

# 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 â Chatterbox · Text to Speech

Yn troi hyd at 5000 nod o destun yn lleferydd. Gall y testun gynnwys tagiau emosiynol fel <laugh>, <chuckle>, <sigh> a <cough>. Mae `audio_url` dewisol yn darparu cyfeirnod y mae'r allbwn yn ceisio cyfateb i'w arddull a'i naws. Mae `exaggeration` (0 i 1), `temperature`, `cfg` a `seed` yn tiwnio'r cyflwyniad.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
textgofynnol
Mathstring
Testun synthesis lleferydd, a all gynnwys tagiau emosiynol: <laugh>, <chuckle>, <sigh>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>. Ni chaiff y testun fod yn fwy na 5000 nod.
audio_urldewisol audio
Mathurl · audio
Rhagosodedighttps://storage.googleapis.com/chatterbox-demo-samples/prompts/male_rickmorty.mp3
Sain gyfeirio y mae'r model yn ceisio paru ei naws a'i steil yn allbwn y lleferydd. Darparwch URL ffeil sain os ydych am ddefnyddio'r cyfeirnod dewisol hwn.
exaggerationdewisol
Mathnumber
Rhagosodedig0.25
0 – 1
Rheolaeth gorliwio lleferydd: mae'r gorliwio mwyaf yn cyfateb i 1.0, tra bod 0.0 yn diffodd gorliwio.
temperaturedewisol
Mathnumber
Rhagosodedig0.7
0.05 – 2
Tymheredd cynhyrchu; mae ei gynyddu yn gwneud y canlyniadau'n fwy creadigol.
cfgdewisol
Mathnumber
Rhagosodedig0.5
0.1 – 1
seeddewisol
Mathinteger | null
Hadau cynhyrchu sain; mae 0 yn dewis hedyn ar hap. Er mwyn atgynhyrchu canlyniadau, defnyddiwch werth sefydlog a gadewch bob priodwedd arall heb ei newid; dylai hyn atgynhyrchu'r ffeil sain yn union.
gofynnol Enw canonaidd, derbyniol hefyd

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": "chatterbox/text-to-speech",
  "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": 2,
    "usd": "0.002",
    "charged": 2,
    "refunded": 0
  },
  "input": {
    "text": "Hello from Doitong. This is a short test sentence."
  },
  "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
    }
  },
  "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
object {url, content_type, file_name, file_size}Sain sy'n cynnwys y lleferydd wedi'i syntheseiddio.

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/chatterbox/text-to-speech.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt