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.

Discord Bots Voice Channels Custom Voices Low Latency REST API

Try It Now

0/500
Free with Kokoro, Piper, VITS, MeloTTS
Сиздин түзгөн аудиоңуз бул жерде көрсөтүлөт
Generated
0:00 0:00
TTS.ai сизге жактыбы? Досторуңузга айтыңыз!

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

Индивидуальным пользователям или ролям присваивать уникальные голоса искусственного интеллекта. Премиум-подписчики получают эксклюзивные голоса, а модераторы имеют собственные отличительные звуки.

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

KokoroKokoro

Free

Lightweight 82M parameter model delivering studio-quality speech with blazing-fast inference.

Fast 5/5

Эң мыктысы: Fastest high-quality option for real-time Discord voice channel speech

Текшерүү Kokoro

MeloTTSMeloTTS

Free

High-quality multilingual text-to-speech that runs on CPU with minimal latency.

Fast 4/5

Эң мыктысы: Free multilingual model supporting international Discord communities

Текшерүү MeloTTS

BarkBark

Standard

Transformer-based text-to-audio model that generates realistic speech, music, and sound effects.

Slow 4/5

Эң мыктысы: Fun sound effects and laughter for entertaining bot responses

Текшерүү Bark

PiperPiper

Free

A fast, local neural text to speech system optimized for Raspberry Pi and embedded devices.

Fast 3/5

Эң мыктысы: Акысыз, жогорку ылдамдыктагы модель, көп көлөмдөгү баарлашуу билдирүүлөрүн окуу үчүн идеалдуу

Текшерүү Piper

ChatterboxChatterbox

Premium

State-of-the-art zero-shot voice cloning with emotion control from Resemble AI.

Medium 5/5 Сөздү клондоо

Эң мыктысы: Clone custom bot personalities with emotion control for immersive servers

Текшерүү Chatterbox

How to Add AI TTS to Your Discord Server

From zero to a speaking bot in minutes

1

API ачкычын алуу

TTS.ai акысыз каттоо эсебине катталып, панелиңизден API ачкычын түзүңүз. Бесплатный уровень включает в себя 50 кредитов плюс неограниченный доступ к бесплатным моделям.

2

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.

3

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.

4

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

JavaScript (discord.js v14) REST 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
View Full Pricing

Көп берилүүчү суроолор

Common questions about TTS for Discord

Create a Discord bot application, use discord.js or discord.py to handle commands, and call the TTS.ai API to generate audio. The API returns audio bytes that your bot streams to Discord voice channels using @discordjs/voice or discord.py voice.

Kokoro generates audio in under 2 seconds for typical messages. Combined with Discord voice connection overhead, total latency is typically 2-4 seconds from command to speech. Piper is even faster for simple messages.

Yes. Store voice preferences per Discord user ID in your bot's database. When a user sends a TTS command, look up their preferred voice and model, then generate audio with those settings. Users can change their voice with a /voice command.

Yes. Kokoro, Piper, VITS, and MeloTTS are completely free with no usage limits. For a small Discord server, the free tier is sufficient for all TTS needs. Larger servers may want premium models for voice cloning and emotion features.

Queue TTS requests per voice channel and process them sequentially. Use async/await patterns in your bot code to handle concurrent requests from different channels. The API supports parallel requests, so multiple channels can generate audio simultaneously.

Yes. Listen for message events in specific channels and automatically send them to the TTS API. Add rate limiting (e.g., one message per 5 seconds) and message length limits to prevent abuse. Allow moderators to toggle auto-read per channel.

Our models collectively support 30+ languages. Kokoro covers 9 major languages, Piper covers 30+, and MeloTTS handles 6 languages with multiple accent variants. Your Discord bot can automatically detect message language or let users set their preferred language.

Implement rate limiting in your bot (e.g., 3 requests per minute per user). Add a cooldown between messages, restrict TTS to specific channels or roles, set a maximum character limit, and add a profanity filter before sending text to the API.

Yes. Use Chatterbox or GPT-SoVITS to clone a voice from a 5-30 second audio sample. Upload the reference audio via the voice cloning API, then use the cloned voice ID in all your bot's TTS requests for a unique bot personality.

Yes. The bot can join stage channels as a speaker and deliver TTS audio. This is great for community events, Q&A sessions, and moderated discussions where the bot reads submitted questions or announcements aloud.

Using free models (Kokoro, Piper), the TTS API cost is zero. Your only expense is bot hosting, which can be as low as $5/month on a basic VPS. Premium models cost credits but are optional for enhanced voice quality and features.

Absolutely. Combine TTS with moderation bots, music bots, or game bots. For example, announce moderation actions in voice channels, read game scores aloud, or create interactive voice-based games using TTS for the narrator.
5.0/5 (1)

Ready to Voice Your Discord Bot?

Get an API key and start building a TTS-powered Discord bot today. 19+ voice models, low latency, simple REST API.