This example shows how to stream Discord audio to Deepgram to provide transcriptions of voice calls.
The bot lets you define a channel to transcribe voice calls to. It then uses webhooks to transcribe messages as the users who are talking.
$ npm install
# Set a bot token, Deepgram token, and transcription channel (see auth.example.json)
$ cp auth.example.json auth.json
$ nano auth.json
# Start the bot!
$ npm start
- bot
- application.commands
- Manage Webhooks
- Send Messages
- Use Slash Commands
- Connect
- Use Voice Activity
After the bot joins your server, type !deploy
to add the following slash commands.
/join - joins your current voice channel /record - marks you as someone the bot should record /leave - leaves the current voice channel and unmarks any members marked with /record