Text to Speech (TTS) library for Python 3. Works without internet connection or delay. Supports multiple TTS engines, including Sapi5, nsss, and espeak.
pip install pyttsx3
Offline Text To Speech (TTS) converter for Python
pyttsx3 is a text-to-speech conversion library in Python. Unlike alternative libraries, it works offline.
Installation :
pip install pyttsx3
If you get installation errors , make sure you first upgrade your wheel version using :
pip install --upgrade wheel
Features :
- ✨Fully OFFLINE text to speech conversion
- 🎈 Choose among different voices installed in your system
- 🎛 Control speed/rate of speech
- 🎚 Tweak Volume
- 📀 Save the speech audio as a file
- ❤️ Simple, powerful, & intuitive API
Linux installation requirements :
-
If you are on a Linux system and if the voice output is not working, then :
Install espeak-ng and libespeak1 as shown below:
sudo apt update && sudo apt install espeak-ng libespeak1