Discord Transcription Bot
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
main.py File Reference

This project is a simple Discord bot which transcribes your Discord conversations in real time. More...

Classes

class  main.StreamBuffer
 The. More...
 
class  main.StreamSink
 

Namespaces

namespace  main
 

Functions

 main.join (ctx)
 
 main.leave (ctx)
 
 main.on_command_error (ctx, error)
 
 main.on_error (event, *args, **kwargs)
 
 main.on_ready ()
 
 main.once_done (discord.sinks sink, discord.TextChannel channel, *args)
 
 main.stop_recording (ctx)
 

Variables

 main.bot = discord.Bot(intents=intents)
 
dict main.connections = {}
 
 main.global_stream_buffer = StreamBuffer()
 
 main.intents = discord.Intents.all()
 
 main.stream_sink = StreamSink()
 
str main.TOKEN = "TODO Discord bot token"
 

Detailed Description

This project is a simple Discord bot which transcribes your Discord conversations in real time.

Author
Nathan Ulmer
Date
Friday 12-01-2024

How It Works

Using py-cord, the bot can gain access to the voice channel you invite it to to listen to your conversation and then poll a speech-to-text API service to transcribe the conversation in real time. The transcription is separated by user and printed to the output channel in Discord.

When you send the bot the shutdown command, it sends a request to ChatGPT to summarize the transcription of the conversation. This is then posted to the discord channel.