Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1011 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 1011 Bytes

Seiyuu Bot

Give what you said on Discord a voice. Powered by Azure Cognitive Services.

Prerequisites

  • 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 or KEY 2 as the key
      • Location/Region as the region

Install

Ensure dependencies are installed

# libraries
brew install ffmpeg libopus

# packages
pip install -r requirements.txt

Usage

# 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