discord-ai-call

Multi-Voice AI Discord Bot

A Discord bot that provides multiple AI personalities with different voices for natural group conversations. Uses Gladia for speech-to-text, GPT-5 nano for AI responses, and Murf AI for text-to-speech.

Features

Multiple AI Personalities

Natural Conversations

Advanced Audio

Setup

1. Install Dependencies

npm install

2. Get API Keys

You’ll need API keys from:

3. Configure Environment Variables

Update the .env file with your API keys:

# Discord Bot Configuration
DISCORD_TOKEN=your_discord_bot_token
CLIENT_ID=your_discord_application_id_here

# API Keys
GLADIA_API_KEY=your_gladia_api_key
OPENAI_API_KEY=your_openai_api_key
MURF_API_KEY=your_murf_api_key_here

4. Discord Bot Permissions

Make sure your Discord bot has these permissions:

Usage

  1. Start the bot:
npm start
  1. The bot will:
    • Join the specified voice channel
    • Listen for users speaking
    • Transcribe speech to text
    • Generate AI responses
    • Convert responses to speech
    • Play audio back in the channel

Technical Details

Audio Format Requirements

Architecture

Discord Voice → Prism-Media → Gladia STT → OpenAI → Murf TTS → Discord Audio Player

Files

Voice Customization

You can customize the TTS voice in murf.js by changing the voiceId parameter:

const voiceId = "en-US-ken"; // Change to your preferred voice