All Projects → nullabork → talkbot

nullabork / talkbot

Licence: MIT License
Text-to-speech and translation bot for Discord

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to talkbot

Parallel-Tacotron2
PyTorch Implementation of Google's Parallel Tacotron 2: A Non-Autoregressive Neural TTS Model with Differentiable Duration Modeling
Stars: ✭ 149 (+451.85%)
Mutual labels:  text-to-speech, tts
LVCNet
LVCNet: Efficient Condition-Dependent Modeling Network for Waveform Generation
Stars: ✭ 67 (+148.15%)
Mutual labels:  text-to-speech, tts
dctts-pytorch
The pytorch implementation of DC-TTS
Stars: ✭ 73 (+170.37%)
Mutual labels:  text-to-speech, tts
Tacotron2-PyTorch
Yet another PyTorch implementation of Tacotron 2 with reduction factor and faster training speed.
Stars: ✭ 118 (+337.04%)
Mutual labels:  text-to-speech, tts
persian-tts
🔊 A simple human-based text-to-speach synthesiser and ReactNative app for Persian language.
Stars: ✭ 18 (-33.33%)
Mutual labels:  text-to-speech, tts
tts dataset maker
A gui to help make a text to speech dataset.
Stars: ✭ 20 (-25.93%)
Mutual labels:  text-to-speech, tts
speak.awf
An Alfred 3 workflow that uses macOS's TTS (text-to-speech) feature to speak text aloud.
Stars: ✭ 29 (+7.41%)
Mutual labels:  text-to-speech, tts
STYLER
Official repository of STYLER: Style Factor Modeling with Rapidity and Robustness via Speech Decomposition for Expressive and Controllable Neural Text to Speech, INTERSPEECH 2021
Stars: ✭ 105 (+288.89%)
Mutual labels:  text-to-speech, tts
talkie
Text-to-speech browser extension button. Select text on any web page, and have the computer read it out loud for you by simply clicking the Talkie button.
Stars: ✭ 43 (+59.26%)
Mutual labels:  text-to-speech, tts
bingspeech-api-client
Microsoft Bing Speech API client in node.js
Stars: ✭ 32 (+18.52%)
Mutual labels:  text-to-speech, tts
TTS tf
WIP Tensorflow implementation of https://github.com/mozilla/TTS
Stars: ✭ 14 (-48.15%)
Mutual labels:  text-to-speech, tts
sam
SAM: Software Automatic Mouth (Ported from https://github.com/vidarh/SAM)
Stars: ✭ 33 (+22.22%)
Mutual labels:  text-to-speech, tts
laravel-text-to-speech
💬 A wrapper for popular TTS services to create a more simple & uniform API. Currently, only AWS Polly is supported.
Stars: ✭ 26 (-3.7%)
Mutual labels:  text-to-speech, tts
editts
Official implementation of EdiTTS: Score-based Editing for Controllable Text-to-Speech
Stars: ✭ 74 (+174.07%)
Mutual labels:  text-to-speech, tts
FastSpeech2
PyTorch Implementation of FastSpeech 2 : Fast and High-Quality End-to-End Text to Speech
Stars: ✭ 163 (+503.7%)
Mutual labels:  text-to-speech, tts
text-to-speech
⚡️ Capacitor plugin for synthesizing speech from text.
Stars: ✭ 50 (+85.19%)
Mutual labels:  text-to-speech, tts
WaveGrad2
PyTorch Implementation of Google Brain's WaveGrad 2: Iterative Refinement for Text-to-Speech Synthesis
Stars: ✭ 55 (+103.7%)
Mutual labels:  text-to-speech, tts
SpeakIt Vietnamese TTS
Vietnamese Text-to-Speech on Windows Project (zalo-speech)
Stars: ✭ 81 (+200%)
Mutual labels:  text-to-speech, tts
ttslearn
ttslearn: Library for Pythonで学ぶ音声合成 (Text-to-speech with Python)
Stars: ✭ 158 (+485.19%)
Mutual labels:  text-to-speech, tts
spokestack-android
Extensible Android mobile voice framework: wakeword, ASR, NLU, and TTS. Easily add voice to any Android app!
Stars: ✭ 52 (+92.59%)
Mutual labels:  text-to-speech, tts

alt text

Talkbot

Discord bot for text-to-speech and language translation

Try it out here: https://discord.gg/NxrPp8g

Docker

  1. If your on windows10, Install wsl2 https://docs.microsoft.com/en-us/windows/wsl/install-win10 else go to step two ;)
  2. Install docker https://docs.docker.com/get-docker/
  3. Clone this repo or Download the talkbot files and extract them.
  4. Copy config/auth.example to config/auth.json and put in your discord app key.
    • To learn how to setup a discord app and get this token go here
    • AMAZON: To learn how to setup Amazon AWS Polly go here
    • AZURE: To learn how to setup Azure go here
  5. Add a file, config/google-auth.json with the google credentials
    • GOOGLE: To learn how to setup your Google API credentials go here
  6. In the command line run docker pull faxwang/talkbot:latest this will take a while.
  7. In the command line run change directory to the project root and run
    • docker-compose up -d to run talkbot in the background
    • docker-compose up to run talkbot in the foreground
  8. It should be running now.

Quick start

  1. Click here to add the bot to your discord: https://discordapp.com/oauth2/authorize?&client_id=428866923267358721&scope=bot&permissions=0
  2. Join a voice channel
  3. Type !follow
  4. Type the message Hello World to hear it read out to you

Documentation

Check out the documentation on gitbook: https://nullabork.gitbook.io/talkbot/

Commands in discord

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

Setup your own bot

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.

Win 10 Software requirements

You can also try getting Python and VS Build Tools this way npm install --global --production --vs2015 --add-python-to-path windows-build-tools

Install, setup and run

  1. Install node v12, git, cmake, python v2.7 and Visual Studio C++ build tools
    • See the URLs in the software requirements for how to do this
  2. Clone this respository
    • git clone https://github.com/nullabork/talkbot talkbot
    • `git
  3. Copy config/auth.example to config/auth.json and put in your discord app key.
    • To learn how to setup a discord app and get this token go here
  4. Setup your prefered API provider - Google, Amazon AWS Polly or Azure or any combination of those.
    • GOOGLE: To learn how to setup your Google API credentials go here
    • AMAZON: To learn how to setup Amazon AWS Polly go here
    • AZURE: To learn how to setup Azure go here
  5. Install NPM dependencies
    npm install
    npm rebuild
  6. Run the bot!
    • node bot.js

Updating to the latest code

To update to the latest code run: git pull

Troubleshooting

Talk to us on discord

Google TTS API Issues

Confirm you've put the path to your API credentials file in the env var GOOGLE_APPLICATION_CREDENTIALS. See Google cloud docs here

npm install issues

Some of the packages are difficult to install particularly on Windows. Usually you'll need to check your PATH environment variable and confirm Visual Studio C++ build tools are available. Check you're using Node v14 or above Check you have Python installed and that it is version 2.7.*. It may have to be before version 3 in your path variable for it to be picked up.

Acknowledgements

  • WootoSmash - coder/bugmaker/shitposter
  • FaxWang - coder/bugfinder/shitposter
  • GreenLionVoltronPilot - bugfinder/shitposter
  • Kingk22 - bugfinder/shitposter/questionanswerer
  • Kelinmiriel - bugfinder/shitposter
  • All the npm package builders!

Want to shitpost also?

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].