কণ্ঠ REST API দিয়ে আপনার নিজের সার্ভার বা অ্যাপ থেকে বাংলা লেখা পাঠিয়ে অডিও (WAV অথবা MP3) বানানো যায়, তারপর ফাইলটা নিজের সিস্টেমে নামিয়ে নেওয়া যায়। এতে আপনার কণ্ঠ-ক্লোন করা ভয়েস, তৈরি ২৪টি কণ্ঠ আর আঞ্চলিক টান সবই চলে। অনুমতি দেয় একটি অ্যাপ্লিকেশন কী; উত্তর আসে JSON-এ।
৩ ধাপে শুরু
- কী বানান। সাইন আপ করে যেকোনো একটি প্যাকেজ কিনুন (API ব্যবহারের জন্য একবার কেনা লাগে), তারপর ড্যাশবোর্ডের “API ও MCP” ট্যাবে কী বানান। কীটি
kontho_sk_…দিয়ে শুরু; এটি শুধু একবার দেখানো হয়, তাই কপি করে নিরাপদ জায়গায় রাখুন। - অডিও বানান।
POST /v1/speech-এ লেখা পাঠান। উত্তরে অডিওর আইডি, সময় আর কত ক্রেডিট কাটল তা আসে। - ফাইল নামান।
GET /v1/speech/{id}/audioথেকে WAV নিন (MP3 চাইলে শেষে?format=mp3)। অথবা প্রথম অনুরোধেইAccept: audio/wavবাaudio/mpegদিন, তাহলে সরাসরি ফাইলটাই ফেরত আসবে।
সব অনুরোধে হেডারে Authorization: Bearer <আপনার কী> দিন। API ডাকুন আপনার সার্ভার থেকে, ওয়েব পেজের ভেতর থেকে নয়: ব্রাউজারে কী রাখলে যে কেউ সেটা দেখে ফেলতে পারে, তাই এই API ব্রাউজারকে উত্তর পড়তেই দেয় না।
The Kontho REST API lets your own server or app send Bangla text, make audio (WAV or MP3) and download the file into your own system. It works with voices you cloned, the 24 ready-made voices and every regional accent. An application key is the permission; answers come as JSON.
Start in 3 steps
- Make a key. Sign up, buy any package (the API needs one purchase), then make a key in the dashboard tab “API ও MCP”. It starts with
kontho_sk_…and is shown only once, so copy it somewhere safe. - Make audio. Send the text to
POST /v1/speech. The answer has the audio id, its length and how many credits it cost. - Download the file. Get the WAV from
GET /v1/speech/{id}/audio(add?format=mp3for an MP3). Or sendAccept: audio/wavoraudio/mpegwith the first request and the file comes straight back.
Send Authorization: Bearer <your key> with every request. Call the API from your server, not from inside a web page: a key in a browser can be seen by anyone, so this API does not let browsers read its answers.