Discord Music Bot using Voice Recognition to receive commands.
Emost-Bot is a music bot for discord using only voice commands. It will listen to only one person who types the {prefix}connect command in a text channel. The bot works in a similar manner to the voice assistant on modern phones.
There needs to be a very small delay (~0.5s) in order for the bot to start listening for the command. So say ‘bumblebee…pause’ rather than ‘bumblebee pause’.
Requirements:
To run the bot: clone the repository
git clone https://github.com/SteTR/Emost-Bot.git
or by clicking the “Code” button and download
Run npm install
in the directory with your preferred CLI to install dependencies
Create a .env file in the project’s directory and put DISCORD_TOKEN={YOUR DISCORD BOT TOKEN HERE WITHOUT CURLY BRACES}
You can obtain a token in discord.com/developers
and go to bots
tab to reveal token
google_speech.json
You can obtain the api key on https://console.cloud.google.com/iam-admin/serviceaccounts
. The json file can be generated by going to the service account and the key tab to generate a json file.
npm run start
and the bot should be onlineHave only tested on Linux, no idea if it will work on Windows or Mac due to some dependencies not working on those platforms.
The bot will record audio of the person typing !connect for hotword and speech detection purposes. The bot itself does not collect any data but uses Picovoice’s Porcupine wake word engine and Google’s Speech to Text API w/o Data Logging.
If you are not comfortable with what the bot is doing, please use !disconnect.
This only applies to Emost-Bot, any other bot with similar features may be collecting data that I have no control of.
If you would like to view the source code, here is the repository link: https://github.com/stetr/emost-bot
Copy pasted from config.json