Text to Speech for Discord
Build Discord bots that speak in voice channels with natural AI voices. Create custom TTS commands, voice-enabled moderation bots, welcome messages, and interactive experiences for your server — powered by 19+ AI voice models and a simple REST API.
Try It Now
Discord TTS Features
Everything you need to add AI voices to your Discord server
Natural Voice in Channels
Replace robotic Discord TTS with lifelike AI voices that join voice channels and speak messages aloud with natural intonation and rhythm.
Custom Per-User Voices
将独有的 AI 声音指派给个人用户或角色。 优先订户得到独家的声音,而主持人有他们自己独特的声音。
Donation & Sub Alerts
Trigger voice alerts for donations, subscriptions, and server boosts. Custom messages read aloud in voice channels with configurable voices per tier.
Low Latency Response
Kokoro and Piper deliver audio in under 2 seconds, ensuring bot responses feel immediate and natural in live voice channel conversations.
100+ Voices Available
Choose from over 100 AI voices across 30+ languages. Every server member can pick their favorite voice for a personalized experience.
API Integration
Simple REST API integrates with discord.js, discord.py, and any Discord bot framework. Full code examples and documentation provided.
Best Voice Models for Discord
Fast, natural-sounding models ideal for real-time Discord bots
Kokoro
Free
Lightweight 82M parameter model delivering studio-quality speech with blazing-fast inference.
最佳用于: Fastest high-quality option for real-time Discord voice channel speech
尝试 Kokoro
MeloTTS
Free
High-quality multilingual text-to-speech that runs on CPU with minimal latency.
最佳用于: Free multilingual model supporting international Discord communities
尝试 MeloTTS
Bark
Standard
Transformer-based text-to-audio model that generates realistic speech, music, and sound effects.
最佳用于: Fun sound effects and laughter for entertaining bot responses
尝试 Bark
Piper
Free
A fast, local neural text to speech system optimized for Raspberry Pi and embedded devices.
最佳用于: 免费超快免费超快模式高容量聊天信息读取理想
尝试 Piper
Chatterbox
Premium
State-of-the-art zero-shot voice cloning with emotion control from Resemble AI.
最佳用于: Clone custom bot personalities with emotion control for immersive servers
尝试 ChatterboxHow to Add AI TTS to Your Discord Server
From zero to a speaking bot in minutes
获得您的 API 密钥
注册一个免费的 TTS.ai 账户并从您的仪表板上生成 API 密钥。 免费级别包括 50 个分数, 外加无限制的免费模式访问 。
Set Up Your Discord Bot
Create a Discord bot application, invite it to your server, and install discord.js or discord.py. Use our code examples to connect the TTS API.
Configure Voices & Commands
Set up slash commands like /tts, /voice, and /say. Assign default voices per channel, role, or user. Configure rate limits to prevent spam.
Deploy & Go Live
Host your bot on a VPS, Heroku, or Railway. Your bot joins voice channels on command and speaks messages with natural AI voices.
Discord TTS Bot Use Cases
How Discord communities use TTS.ai
Chat-to-Speech Bot
Build a bot that reads text messages aloud in a voice channel. Server members type in a text channel, and the bot speaks their messages with unique AI voices. Assign different voices to different users or let members choose their own voice with a command like !voice kokoro af_sky.
- Read text channels aloud in voice
- Per-user voice assignments
- Automatic language detection
- Profanity filtering before speech
Welcome & Announcement Bot
Greet new members with a spoken welcome message when they join a voice channel. Announce events, server updates, or game session starts with custom AI voices. Use different voices for different announcement categories — a friendly voice for welcomes, a deep voice for alerts.
- Voice channel join/leave announcements
- Scheduled event announcements
- Custom voices for each announcement type
- Multilingual welcome messages
Gaming Session Bot
Enhance gaming sessions with AI-voiced NPCs, quest narration, or dungeon master dialogue for tabletop RPGs. A D&D bot can speak different character voices for each NPC, read item descriptions, or narrate combat outcomes — making virtual tabletop sessions more immersive.
- Multiple character voices for RPG NPCs
- Quest and lore narration
- Combat commentary and play-by-play
- Voice cloning for recurring characters
Translation Bot
Combine TTS with translation for a multilingual Discord server. Members speak or type in their language, the bot translates and speaks the result in the target language. Perfect for international gaming communities, language learning servers, and global teams.
- Real-time message translation + speech
- 30+ language support
- Native pronunciation per language
- Auto-detect source language
Discord Bot Integration
Add TTS to your Discord bot with discord.js and the TTS.ai API
const { Client, GatewayIntentBits } = require('discord.js');
const { joinVoiceChannel, createAudioPlayer,
createAudioResource } = require('@discordjs/voice');
const fetch = require('node-fetch');
const fs = require('fs');
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildVoiceStates, GatewayIntentBits.MessageContent]
});
client.on('messageCreate', async (message) => {
if (!message.content.startsWith('!say ')) return;
const text = message.content.slice(5);
// Generate speech with TTS.ai API
const res = await fetch('https://api.tts.ai/v1/tts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: text,
model: 'kokoro',
voice: 'af_heart',
format: 'wav'
})
});
// Play in voice channel
const buffer = await res.buffer();
fs.writeFileSync('/tmp/tts.wav', buffer);
const connection = joinVoiceChannel({
channelId: message.member.voice.channelId,
guildId: message.guildId,
adapterCreator: message.guild.voiceAdapterCreator
});
const player = createAudioPlayer();
player.play(createAudioResource('/tmp/tts.wav'));
connection.subscribe(player);
});
Affordable for Any Discord Server
Free tier for testing, affordable plans for active servers.
Free Tier
$0
50 credits on signup
- 4 free models
- Test your bot setup
- No credit card required
Starter
$9
500 credits/month
- All 19+ voice models
- Small to mid-size servers
- API access
Pro
$29
2000 credits/month
- High-traffic servers
- Premium models + priority
- Voice cloning
常问问题
Common questions about TTS for Discord