A speech-to-text bot for Discord written in GoLang. Can be useful for hearing impaired and deaf people. Try the bot for yourself on our Discord server: https://discord.gg/ApdTMG9
Note: This works only on a Linux x86 platform
In your Discord Developers Bot settings, you need to enable these intents:
- You may need to install opus
apt-get install opus-tools
- Clone this repository and cd inside
- Create
.env
file to provide your Discord bot token:TOKEN=...
- Run
VOSK_PATH=$(pwd)/vosk-linux-x86_64-0.3.45 LD_LIBRARY_PATH=$VOSK_PATH CGO_CPPFLAGS="-I $VOSK_PATH" CGO_LDFLAGS="-L $VOSK_PATH" go run ears.go
- Or use
go build
to (with the above CLI prefix) and run the binary
- Enter one of your voice channels.
- In one of your text channels type:
*join
, the bot will join the voice channel. - Everything said within that channel will be transcribed into text (as long as the bot is within the voice channel).
- Type
*leave
to make the bot leave the voice channel.
You can find and download more STT models here: https://alphacephei.com/vosk/models