အကြောင်းအရာသို့ ကျော်ရန်

Chatterbox · Text to Speech

ပေါင်းစည်းရန်

မော်ဒယ် id 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"

ဤတောင်းဆိုချက်: ၀.၀၀၂ $ ၂ API ခရက်ဒစ် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Resemble AI စာသားမှ အသံ #text-to-speech

ခံစားချက် tag များ၊ အလေးပေးမှုထိန်းချုပ်မှုနှင့် ရွေးချယ်နိုင်သော ရည်ညွှန်းအသံပုံစံပါဝင်သည့် အင်္ဂလိပ်စာသားမှ စကားသံပြောင်းလဲမှု

Resemble AI · အသံ

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည်

စကားသံပေါင်းစပ်ထုတ်လုပ်ရန် စာသား၊ emotive tag များ ပါဝင်နိုင်သည်: <laugh>, <chuckle>, <sigh>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>။ စာသားသည် အက္ခရာ 5000 ထက် မပိုရ။

အဆင့်မြင့် audio · exaggeration · temperature · cfg · seed
audio_url မူလ https://storage.googl...
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

မော်ဒယ်က ၎င်း၏ စကားသံထွက်ရလဒ်တွင် ကိုက်ညီအောင် ကြိုးစားမည့် အသံ၏ tone နှင့် style ပါဝင်သော ရည်ညွှန်းအသံ။ ဤရွေးချယ်နိုင်သော ရည်ညွှန်းချက်ကို အသုံးပြုလိုပါက အသံဖိုင် URL ပေးပါ။

မူလ 0.25

စကားသံချဲ့ကားမှု ထိန်းချုပ်ချက်: အများဆုံးချဲ့ကားမှုသည် 1.0 နှင့် ကိုက်ညီပြီး 0.0 သည် ချဲ့ကားမှုကို ပိတ်သည်။

မူလ 0.7

ဖန်တီးမှု temperature; တန်ဖိုးမြှင့်ပါက ရလဒ်များ ပိုမိုဖန်တီးမှုရှိလာမည်။

မူလ 0.5

အသံဖန်တီးမှု seed; 0 သည် ကျပန်း seed ကို ရွေးသည်။ ပြန်လည်ထုတ်လုပ်နိုင်ရန် သတ်မှတ်ထားသောတန်ဖိုးကို အသုံးပြုပြီး အခြား property အားလုံးကို မပြောင်းလဲထားပါ။ ထိုသို့ပြုလုပ်ပါက အသံဖိုင်ကို အတိအကျ ပြန်လည်ထုတ်လုပ်နိုင်မည်။

POST /run/chatterbox/text-to-speech?wait=20 ကုန်ကျစရိတ် → ၀.၀၀၂ $
# 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"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

Chatterbox · Text to Speech အကြောင်း

စာလုံး 5000 အထိပါသော စာသားကို စကားသံအဖြစ် ပြောင်းပေးသည်။ စာသားတွင် <laugh>, <chuckle>, <sigh> နှင့် <cough> ကဲ့သို့ ခံစားချက် tag များ ထည့်သွင်းနိုင်သည်။ ရွေးချယ်နိုင်သော `audio_url` သည် အထွက်အသံက လိုက်လျောရန် ကြိုးစားမည့် ရည်ညွှန်းအသံ၏ ပုံစံနှင့် အသံနေအသံထားကို ပေးသည်။ `exaggeration` (0 မှ 1 အထိ), `temperature`, `cfg` နှင့် `seed` တို့ဖြင့် အသံဖတ်ပုံကို ချိန်ညှိနိုင်သည်။

ပါရာမီတာများ

စံအမည် သို့မဟုတ် မူရင်းအမည် တစ်ခုခုကိုသာ ပို့ပါ၊ နှစ်ခုလုံး မပို့ပါနှင့်။ စံအမည်များ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
textလိုအပ်သည်
အမျိုးအစားstring
စကားသံပေါင်းစပ်ထုတ်လုပ်ရန် စာသား၊ emotive tag များ ပါဝင်နိုင်သည်: <laugh>, <chuckle>, <sigh>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>။ စာသားသည် အက္ခရာ 5000 ထက် မပိုရ။
audio_urlရွေးချယ်နိုင်သည် audio
အမျိုးအစားurl · audio
မူလတန်ဖိုးhttps://storage.googleapis.com/chatterbox-demo-samples/prompts/male_rickmorty.mp3
မော်ဒယ်က ၎င်း၏ စကားသံထွက်ရလဒ်တွင် ကိုက်ညီအောင် ကြိုးစားမည့် အသံ၏ tone နှင့် style ပါဝင်သော ရည်ညွှန်းအသံ။ ဤရွေးချယ်နိုင်သော ရည်ညွှန်းချက်ကို အသုံးပြုလိုပါက အသံဖိုင် URL ပေးပါ။
exaggerationရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.25
၀ – ၁
စကားသံချဲ့ကားမှု ထိန်းချုပ်ချက်: အများဆုံးချဲ့ကားမှုသည် 1.0 နှင့် ကိုက်ညီပြီး 0.0 သည် ချဲ့ကားမှုကို ပိတ်သည်။
temperatureရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.7
၀.၀၅ – ၂
ဖန်တီးမှု temperature; တန်ဖိုးမြှင့်ပါက ရလဒ်များ ပိုမိုဖန်တီးမှုရှိလာမည်။
cfgရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.5
၀.၁ – ၁
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
အသံဖန်တီးမှု seed; 0 သည် ကျပန်း seed ကို ရွေးသည်။ ပြန်လည်ထုတ်လုပ်နိုင်ရန် သတ်မှတ်ထားသောတန်ဖိုးကို အသုံးပြုပြီး အခြား property အားလုံးကို မပြောင်းလဲထားပါ။ ထိုသို့ပြုလုပ်ပါက အသံဖိုင်ကို အတိအကျ ပြန်လည်ထုတ်လုပ်နိုင်မည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ဖိုင်ပါရာမီတာများသည် အများပြည်သူသုံး https:// URL၊ 10 MB အထိ data: URI သို့မဟုတ် အပ်လုဒ်လုပ်ထားသောဖိုင်၏ file_url ကို လက်ခံသည်။ ဖိုင်များ

ထွက်ရလဒ်

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"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
audio
object {url, content_type, file_name, file_size}ပေါင်းစပ်ထုတ်လုပ်ထားသော စကားပြောသံပါဝင်သည့် အသံ။

နောက်ထပ် မော်ဒယ်များ: စာသားမှ အသံ

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/chatterbox/text-to-speech.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt