Skip to content

dreamerc/twitch-tts

Repository files navigation

twitch-tts

Twitch Text-To-Speech Tool

This tool is added !tts command, and play audio from Python TTS.

It's Free (twitch-tts under MIT License).

The Goal :

  1. Help that some people don't want to use their real voice.
  2. Accessible feature shouldn't charge.
  3. Making the datasets/models for public domain.

Use it carefully, it's an early version. Upstream, Coqui.ai is under unknown status.

Development On Ubuntu Linux.

A. Classical (support CUDA)

Twitch.py client - !tts [something] -> Coqui.ai TTS Feature - Curl -> ALSA:aplay

B. New (CPU only)

Browser (twitch-js) <-> Docker with Coqui.ai TTS

Quick Start (B)

docker run -it --rm -p 5003:8000 -p 5002:5002 -e TWITCHCHANNEL=<ChannelName> dreamerwolf/twitch-tts-server:latest /root/twitch-tts/run-cpu-docker.sh

Install Guide (A)


  1. Python Venv and Git
sudo apt install python3-venv git
mkdir -p ~/python3-venv-root/twitch-tts-venv
python3 -m venv ~/python3-venv-root/twitch-tts-venv
cd ~/python3-venv-root/twitch-tts-venv
source ~/python3-venv-root/twitch-tts-venv
git clone https://github.com/dreamerc/twitch-tts
  1. Install https://github.com/coqui-ai/TTS and others
pip install -r requirements.txt
  1. Start TTS WSGI server , and it will take minutes for the model based on your network.

CPU :

./run-cpu.sh

nVidia CUDA :

./run-cuda.sh
  1. Edit config.txt and Start the twitch chatbot.

Start :

python twitch-tts.py

How to Use?

Usage :

use it in chatroom

!tts <something> 

FAQ

About

Twitch Text-To-Speech Tool

Topics

Resources

License

Stars

Watchers

Forks