কনটেন্টে যান

Maya1

ইন্টিগ্রেট করুন

মডেল id maya
# 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/maya?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

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

এই অনুরোধ: ≈০.০৪৯$ ৪৯ API ক্রেডিট · ≈ ৫.১৭₽ এই পেজে চালান

API কী পান
Maya Research টেক্সট থেকে স্পিচ #text-to-speech#tts

ভয়েস বর্ণনার প্রম্পট এবং ইনলাইন আবেগের ট্যাগসহ অভিব্যক্তিপূর্ণ টেক্সট-টু-স্পিচ

Maya Research · অডিও

আপনার প্রথম ফলাফল এখানে আসবে

নিচে একটি রিকোয়েস্ট তৈরি করে আপনার API কী দিয়ে চালান। আউটপুট আমাদের স্টোরেজে কপি করা হয়, চিরকাল বা বিনামূল্যে ৭ দিন পর্যন্ত রাখা হয়।

একটি অনুরোধ তৈরি করুন

মডেল স্কিমা থেকে কন্ট্রোল তৈরি করা হয়। এগুলো পরিবর্তন করলে কোড ও মূল্য আপডেট হয়।

•আবশ্যক 50 / 5000

Speech-synthesis টেক্সট, যেখানে যেকোনো অবস্থানে <emotion_name> আকারে emotion tag ব্যবহার করা যায়, যেমন 'Hello world! <excited> This is amazing!' অথবা 'I can't believe this <sigh> happened again.'. সমর্থিত emotion হলো curious, sarcastic, giggle, gulp, exhale, snort, sing, scream, cry, whisper, excited, angry, gasp, chuckle, sigh, laugh_harder এবং laugh।

•আবশ্যক 50 / 500

বর্ণনা করার জন্য voice বা character-এর বৈশিষ্ট্য, যেমন intensity, tone, pacing, timbre, pitch, accent এবং age।

অ্যাডভান্সড sample_rate · output_format · temperature · top_p · max_tokens · repetition_penalty · enable_safety_checker
sample_rate ডিফল্ট 48 kHz

24 kHz-এ দ্রুত processing এবং 48 kHz-এ উচ্চমানের আউটপুটের মধ্যে অডিও sample-rate নির্বাচন।

output_format ডিফল্ট wav

সংশ্লেষিত speech-এর জন্য ব্যবহৃত অডিও ফাইল ফরম্যাট।

ডিফল্ট 0.4

অডিওর বৈচিত্র্য নিয়ন্ত্রণকারী sampling temperature: এটি বাড়ালে বৈচিত্র্য বাড়ে, আর 0.2–0.5-এর নিম্ন পরিসর স্থায়িত্ব ও সামঞ্জস্যকে অগ্রাধিকার দেয়।

ডিফল্ট 0.9

টোকেন নির্বাচন বৈচিত্র্য সামঞ্জস্যকারী nucleus sampling সেটিং।

ডিফল্ট 2000

অডিওর দৈর্ঘ্য সীমাবদ্ধ করা SNAC টোকেন বাজেট, যা প্রতি ফ্রেমে 7 টোকেন হিসেবে হিসাব করা হয়।

ডিফল্ট 1.1

টোকেন পুনরাবৃত্তির ওপর প্রয়োগ করা penalty। এটি বাড়ালে পুনরাবৃত্তিজনিত artifact কমে।

POST /run/maya?wait=20 মূল্য → ০.০৪৯$
# 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/maya?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

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

এই অনুরোধ চালান

আপনার key এই ব্রাউজারেই থাকে: এটি শুধু Doitong API-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি API কী পান

Maya1 সম্পর্কে

সর্বোচ্চ 5000 অক্ষরের টেক্সটকে স্পিচে রূপান্তর করে। সর্বোচ্চ 500 অক্ষরের আবশ্যিক `prompt` ভয়েসের বয়স, উচ্চারণ ও টোনের মতো বৈশিষ্ট্য বর্ণনা করে। laugh বা whisper-এর মতো আবেগের ট্যাগ টেক্সটের মধ্যে বসানো যায়। 48 kHz বা 24 kHz স্যাম্পল রেট এবং wav বা mp3 আউটপুট বেছে নিন; `max_tokens` অডিওর দৈর্ঘ্য সীমিত করে।

প্যারামিটার

নামধরন ডিফল্টঅনুমোদিত বিবরণ
textআবশ্যক
ধরনstring
≤ ৫,০০০টি অক্ষর
Speech-synthesis টেক্সট, যেখানে যেকোনো অবস্থানে <emotion_name> আকারে emotion tag ব্যবহার করা যায়, যেমন 'Hello world! <excited> This is amazing!' অথবা 'I can't believe this <sigh> happened again.'. সমর্থিত emotion হলো curious, sarcastic, giggle, gulp, exhale, snort, sing, scream, cry, whisper, excited, angry, gasp, chuckle, sigh, laugh_harder এবং laugh।
promptআবশ্যক
ধরনstring
≤ ৫০০টি অক্ষর
বর্ণনা করার জন্য voice বা character-এর বৈশিষ্ট্য, যেমন intensity, tone, pacing, timbre, pitch, accent এবং age।
temperatureঐচ্ছিক
ধরনnumber
ডিফল্ট0.4
০ – ২
অডিওর বৈচিত্র্য নিয়ন্ত্রণকারী sampling temperature: এটি বাড়ালে বৈচিত্র্য বাড়ে, আর 0.2–0.5-এর নিম্ন পরিসর স্থায়িত্ব ও সামঞ্জস্যকে অগ্রাধিকার দেয়।
top_pঐচ্ছিক
ধরনnumber
ডিফল্ট0.9
০ – ১
টোকেন নির্বাচন বৈচিত্র্য সামঞ্জস্যকারী nucleus sampling সেটিং।
max_tokensঐচ্ছিক
ধরনinteger
ডিফল্ট2000
২৮ – ৪,০০০
অডিওর দৈর্ঘ্য সীমাবদ্ধ করা SNAC টোকেন বাজেট, যা প্রতি ফ্রেমে 7 টোকেন হিসেবে হিসাব করা হয়।
repetition_penaltyঐচ্ছিক
ধরনnumber
ডিফল্ট1.1
১ – ২
টোকেন পুনরাবৃত্তির ওপর প্রয়োগ করা penalty। এটি বাড়ালে পুনরাবৃত্তিজনিত artifact কমে।
sample_rateঐচ্ছিক
ধরনenum
ডিফল্ট48 kHz
48 kHz24 kHz
24 kHz-এ দ্রুত processing এবং 48 kHz-এ উচ্চমানের আউটপুটের মধ্যে অডিও sample-rate নির্বাচন।
output_formatঐচ্ছিক
ধরনenum
ডিফল্টwav
wavmp3
সংশ্লেষিত speech-এর জন্য ব্যবহৃত অডিও ফাইল ফরম্যাট।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
কলকারী অনুমোদিত হলে false সেট করে স্ক্রিনিং শিথিল করা যায়।
আবশ্যক

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "maya",
  "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": 49,
    "usd": "0.049",
    "charged": 49,
    "refunded": 0
  },
  "input": {
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "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
    },
    "duration": 5,
    "sample_rate": "48 kHz",
    "generation_time": 2.3,
    "rtf": 0.51
  },
  "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"
  }
}
আপনার ফাইল, আপনার পছন্দপ্রতিটি outputs[].url আমাদের স্টোরেজে একটি কপি: চিরকাল রাখা হয় (প্রতি GB-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
audio
object {url, content_type, file_name, file_size}WAV বা MP3-তে জেনারেট করা speech ফাইল, upsampler নির্ধারিত 24 kHz বা 48 kHz-এ mono অডিওসহ।
duration
numberঅডিও আউটপুটের দৈর্ঘ্য, সেকেন্ডে পরিমাপ করা।
sample_rate
stringঅডিও আউটপুটের sampling rate।
generation_time
numberঅডিও জেনারেশনের সময়, সেকেন্ডে পরিমাপ করা।
rtf
numbergeneration_time-কে audio_duration দিয়ে ভাগ করে হিসাব করা real-time factor; ছোট মান ভালো কর্মক্ষমতা নির্দেশ করে।

আরও মডেল: টেক্সট থেকে স্পিচ

AI এজেন্টদের জন্য: এই পৃষ্ঠাটি Markdown হিসেবে এখানে আছে https://doitong.com/bn/developers/models/maya.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt