Text to Speech API for Discord Bots
Low-latency WAV over a single REST call. No SDK. No per-voice licensing. Bot is speaking in under 200 ms.
Why it matters.
ElevenLabs rate-limits burst traffic
Discord voice channels spike: a single /tts command fires a cold HTTP round-trip, and popular bots hit ElevenLabs' concurrency ceiling during peak hours. Audexum queues requests on your key with no artificial concurrency cap on Pro and above.
Opus encoding is your bottleneck, not the TTS
discord.js consumes Opus natively. Audexum returns raw WAV (PCM 24 kHz) which ffmpeg or @discordjs/opus can transcode in-process. You control the buffer: no hidden re-encoding on a third-party server adding 300 ms.
43 voices, one endpoint, no per-voice fee
ElevenLabs charges per voice clone; Google TTS bills per language as a separate SKU. Audexum's 43 voices across 32 languages are all on the same price schedule: a multilingual /tts command costs the same as an English-only one.
Free tier renews every day, not just once
2,000 credits to start, then 250 more every day: roughly 35 short TTS commands a day, refreshed automatically. Most hobby bots never leave the free tier. When you do scale, PAYG charges €28 per million credits with no monthly commitment.
First audio in 60 seconds.
No SDK. One POST request, binary audio in the response body.
// tts.js: Audexum TTS helper for discord.js v14
const { Readable } = require("stream");
const API = "https://audexum.com/api/synthesize";
/**
* Returns a Node.js Readable stream of PCM WAV audio.
* Pass it directly to createAudioResource() with StreamType.Arbitrary.
*/
async function synthesize(text, voice = "af_heart") {
const res = await fetch(API, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AUDEXUM_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ text, voice, format: "wav" }),
});
if (!res.ok) throw new Error(`Audexum ${res.status}: ${await res.text()}`);
return Readable.fromWeb(res.body);
}
module.exports = { synthesize };Full parameter reference: audexum.com/docs. Formats: wav, mp3, ogg. Voices: F1 to F5, M1 to M5 (43 voices total). Languages: 33.
No per-use-case surcharge.
Every plan covers every use case at the same credit rate. Pack credits never expire, and dictation uses the same balance.
Full pricing details- Free
- €0
- 2,000 + 250/day
- Creator
- €12/mo
- 480,000 / mo
- Pro
- €29/mo
- 1,200,000 / mo
- Scale
- €49/mo
- 4,000,000 / mo
- Business
- €149/mo
- 15,000,000 / mo
- Credit packs
- €7
- 250,000, never expire
Questions, answered.
What audio format should I use for Discord?
How fast is the first-byte response?
Can I run multiple concurrent /tts commands?
Is there a Discord-specific SDK?
Tools and guides for this use case.
Same API, every use case.
One endpoint handles Discord bots, podcast narration, e-learning courses, accessibility audio, and newsletter editions.