Text-to-speech and translation bot for Discord
Discord bot for text-to-speech and language translation
Try it out here: https://discord.gg/NxrPp8g
config/auth.example
to config/auth.json
and put in your discord app key.
config/google-auth.json
with the google credentials
docker pull faxwang/talkbot:latest
this will take a while.docker-compose up -d
to run talkbot in the backgrounddocker-compose up
to run talkbot in the foreground!follow
Hello World
to hear it read out to youCheck out the documentation on gitbook: https://nullabork.gitbook.io/talkbot/
The bot requires a master to control it. Once you're its master it'll convert your text into voice in the current voice channel. The bot will also follow you between voice channels. Other users will only be able to use the bot if you permit them to use it. If you don't use the bot for 30 minutes it'll unfollow you.
= Control =
!follow :: The bot will join your voice channel and speak what you write
!unfollow :: Release the bot
!sidle :: Take control of the bot from someone else
!transfer :: Transfer control of the bot to another person
!permit [<user>] :: Permit someone else to use the bot whilst it's following you
!unpermit [<user>] :: Unpermit someone else from using the bot
!tts :: Speak when you're muted
= Personalization =
!defaults :: Reset your default voice settings
!mypitch <pitch> :: Alter the pitch of the bot's voice. Valid values are -20 to 20
!myspeed <speed> :: Alter the speed the bot talks. 1.0 is the default. Valid values are 0.25 to 4.0
!myvoice <voice|alias> :: Change accent or style.
!tolang <lang> :: Translate your text to a different language eg. en, fr, jp, de etc.
!mute :: Mute yourself so your text is not read out
!unmute :: Unmute yourself so all your text is read out
= More =
!help info :: info help commands
!help server :: server help commands
Use this to setup your own bot on your own server. Note you will require a Google Cloud account to use their TTS API and an Amazon Polly account to use Amazon TTS voices. Both of these services have free tiers but may cost you money if you exceed their free caps. Each of these services can be turned on and off in the configuration of the bot.
git clone https://github.com/nullabork/talkbot talkbot
auth.example
file in the config
directory and rename the new file to auth.json
edit the file and paste in your discord app key.
npm install
node bot.js
To update to the latest code run:
git pull
Confirm you've put the path to your API credentials file in the env var GOOGLE_APPLICATION_CREDENTIALS. See Google cloud docs here