Have a local TTS service read your Twitch Chat for you!
Reads all chat messages except your own and speaks them aloud using Edge-TTS (modern neural voices) or espeak-ng (retro, robot-like vibes).
You can toggle between these two by setting the flag USE_EDGE_TTS = True in the script.
This project relies on Python 3.8+ and the following things:
- Edge-TTS (uses Microsoft Edge neural voices, requires
edge-ttsPython package andffmpegfor audio playback), or - espeak-ng (classic, lightweight, robotic TTS engine available locally on most platforms).
- Go to Twitch Token Generator to get your client secret and client ID.
Make sure Python 3.8 or newer is installed on your system:
- Download Python
- Verify installation with:
python --versionpip install twitchio requests edge-tts pycaw comtypes-
REQUIRED: Install FFMPEG to play audio output
- Download from https://ffmpeg.org/download.html
- Follow platform-specific installation instructions to add
ffmpegto your system PATH.
-
Windows:
- Download installer from https://github.com/espeak-ng/espeak-ng/releases (look for
.exeinstaller) - Install and add to PATH if needed.
- Download installer from https://github.com/espeak-ng/espeak-ng/releases (look for
-
Linux (Debian/Ubuntu):
sudo apt-get update
sudo apt-get install espeak-ng- macOS (using Homebrew):
brew install espeak-ng- To verify installation:
espeak-ng --version- Clone this repository or download the script.
- Install the required dependencies:
pip install -r requirements.txt- Run the bot:
python Twitch_TTS.py- The bot will join your specified channel and read aloud all chat messages except your own.
USE_EDGE_TTS: Set toTrueto use Edge-TTS (modern neural voices). Set toFalseto use espeak-ng (retro, robotic voices).CHANNEL: Set this to your Twitch channel name.
- Ensure that
ffmpegis installed and accessible in your system's PATH if using Edge-TTS. - If using espeak-ng, you can adjust the voice and language settings by modifying the
espeak-ngcommand options in the script. - This bot uses the Twitch IRC chat interface to read messages. Ensure your Twitch account has the necessary permissions to read chat messages.
This project is licensed under the MIT License:
Copyright 2025 - Lazycoder744
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.