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

Async Text to Speech Pro V1.0

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

မော်ဒယ် id async/tts-pro/v1.0
# 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/async/tts-pro/v1.0?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  }'

# 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 ကီး ရယူရန်
Async စာသားမှ အသံ Lipsync #text-to-speech#voice-clone

အသံရွေးချယ်မှု၊ ရွေးချယ်နိုင်သော အသံပုံတူဖန်တီးမှုနှင့် အတင်းသတ်မှတ်ဘာသာစကား 6 မျိုးပါသော စာသားမှ စကားသံပြောင်းခြင်း။

Async · အသံ

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

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

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

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

•လိုအပ်သည်

စကားပြောအသံအဖြစ် ပေါင်းစပ်ဖန်တီးမည့် စာသားအကြောင်းအရာ။

•လိုအပ်သည်

စကားပြောအသံပေါင်းစပ်မှုအတွက် ရွေးချယ်ထားသော အသံ။

အဆင့်မြင့် language · output_format
language

ပေါင်းစပ်ဖန်တီးစဉ် အသုံးပြုရန် သတ်မှတ်ထားသော ဘာသာစကား၊ ISO 639-1 ဖြင့် သတ်မှတ်သည်။

ဖန်တီးမည့်အသံအတွက် ဖွဲ့စည်းသတ်မှတ်ချက်။

POST /run/async/tts-pro/v1.0?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/async/tts-pro/v1.0?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  }'

# 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 ကီး ရယူရန်

Async Text to Speech Pro V1.0 အကြောင်း

ရွေးချယ်ထားသော `voice` အရာဝတ္ထုကို အသုံးပြု၍ `transcript` ကို စကားသံအဖြစ် ပြောင်းလဲသည်။ ရွေးချယ်နိုင်သော `language` ပါရာမီတာဖြင့် English၊ French၊ Spanish၊ German၊ Italian သို့မဟုတ် Portuguese ဖြင့် ဖန်တီးရန် သတ်မှတ်နိုင်သည်။ `output_format` အရာဝတ္ထုက အသံကို သတ်မှတ်ပေးပြီး ရလဒ်တွင် အသံဖိုင်၊ ၎င်း၏ MIME အမျိုးအစား နှင့် ဘိုက်ဖြင့် အရွယ်အစား ပါဝင်သည်။ သတ်မှတ်ထားသော စကားသံကို ရွေးချယ်ရသော voiceover များအတွက် သင့်လျော်သည်။

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
transcriptလိုအပ်သည်
အမျိုးအစားstring
စကားပြောအသံအဖြစ် ပေါင်းစပ်ဖန်တီးမည့် စာသားအကြောင်းအရာ။
voiceလိုအပ်သည်
အမျိုးအစားobject
စကားပြောအသံပေါင်းစပ်မှုအတွက် ရွေးချယ်ထားသော အသံ။
voice.nameရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးJennie
JennieStellaMaxHayesElaraCleoFisherCorinThaddeusLucinaAcadiaHuxleyWinsletJethroElioRupert
+84 ခု ထပ်မံEiraNyraArianLilyPierceKaelaElowenFreyaLennyAlessaPandoraFiaAbbottKaelOrlaSableMarnieSeraVirelLioraRivenElysDreenaRheaVelaNymeraIsoldeLirienZellaAvennaMirelleCaliaLuneaLucanTarianArloJovanNeronZivenDaxOrienLiorEryxTyrenNoxElricVarianZoranMiroDalenRonixJarekNyxieSorenVionaSeleneRachielCorbinAbigailFaithKimberlyDaveGraceAldenRenlyVioletJoelXavierEsmeraldaRobertLilaBrooksLennoxVanessaSimonNyomiJackPenelopeBraydenAbelNellieConnieAndrewLincoln
အသုံးပြုမည့် အမည်ပေးထားသော preset အသံ။ `id` ပေးထားပါက အကျိုးသက်ရောက်မှုမရှိပါ။
output_formatရွေးချယ်နိုင်သည်
အမျိုးအစားobject
ဖန်တီးမည့်အသံအတွက် ဖွဲ့စည်းသတ်မှတ်ချက်။
output_format.containerရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးmp3
mp3raw
ဖန်တီးမည့်အသံ၏ container format။
output_format.encodingရွေးချယ်နိုင်သည်
အမျိုးအစားenum
pcm_s16lepcm_f32lepcm_mulaw
container သည် 'raw' ဖြစ်သည့်အခါမှသာ အသုံးပြုမည့် PCM encoding။
output_format.sample_rateရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး44100
၈,၀၀၀ – ၄၈,၀၀၀
ထွက်ရလဒ်၏ sampling frequency၊ Hz ဖြင့် ဖော်ပြသည်။
output_format.bit_rateရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
၃၂,၀၀၀ – ၃၂၀,၀၀၀
ထွက်ရလဒ်၏ bit rate၊ 'mp3' container အတွက်သာ သက်ဆိုင်သည်။
languageရွေးချယ်နိုင်သည်
အမျိုးအစားenum
enfresdeitpt
ပေါင်းစပ်ဖန်တီးစဉ် အသုံးပြုရန် သတ်မှတ်ထားသော ဘာသာစကား၊ ISO 639-1 ဖြင့် သတ်မှတ်သည်။
လိုအပ်သည်

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "async/tts-pro/v1.0",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  },
  "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
    },
    "content_type": "audio/mpeg",
    "size_bytes": 1
  },
  "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}
content_type
stringအသံ၏ MIME type။
size_bytes
integerအသံဖိုင်အရွယ်အစား၊ bytes ဖြင့် တိုင်းတာသည်။

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