cannawen / dota-gsi-discord-bot

Use Dota 2's Game State Integration API to make helpful announcements in a discord voice channel
MIT License
5 stars 2 forks source link

[feature] voicepacks #99

Open cannawen opened 1 year ago

cannawen commented 1 year ago

A user should be able to choose between different voicepacks (like announcer packs in dota)

I was thinking architecture wise, a default TTS string for all announcements, and then a folder for each voicepack with the file name the same as the TTS string. And then you just need to set some state per user like "birdy" and if this state exists, search in the birdy announcer pack folder for the audio, otherwise just use the default text to speech... there is already some "configurable" audio output logic that decides if a sound should be played through discord or through the website, so we could probably hack on which announcer pack audio is played in that chunk of logic