Give what you said on Discord a voice. Powered by Azure Cognitive Services.
- Discord Bot
- Generate bot token
- Grant bot permissions to:
- Read messages
- Connect to and speak in voice channels
- Azure Cognitive Services
- Add a Speech service
- Use credentials from "Keys and Endpoint" portal:
KEY 1
orKEY 2
as the keyLocation/Region
as the region
Ensure dependencies are installed
# libraries
brew install ffmpeg libopus
# packages
pip install -r requirements.txt
# setup credentials
export DISCORD_TOKEN=<token>
export AZURE_SPEECH_KEY=<key>
export AZURE_SPEECH_REGION=<region>
# configure VOICES in bot.py
vi bot.py
# launch the bot
python bot.py