Ease-TTS is a simple and lightweight Python module for converting text into speech. It supports playback on Windows, macOS, and Linux. Easy to install and beginner-friendly, it is ideal for accessibility, automation, learning projects, or adding natural voice output to applications.
Project description
Python TTS
Ease-TTS is a simple and lightweight Python module for converting text into speech. It supports playback on Windows, macOS, and Linux. Easy to install and beginner-friendly, it is ideal for accessibility, automation, learning projects, or adding natural voice output to applications.
Prerequisites
- Python 3.9+
- An audio player:
- Windows → Uses default media player
- macOS → Uses
afplay - Linux → Requires
mpg123(sudo apt install mpg123)
Setup
You can clone the repo and install dependencies in one go:
git clone https://github.com/Madhav703/ease-tts.git
cd ease-tts
pip install -r requirements.txt
Or install directly from PyPI:
pip install ease-tts
Usage
from ease_tts import TTS
m = TTS()
m.play("Hello World")
This will generate speech and play Hello World on your system.
Notes
- Requires an active internet connection (gTTS sends text to Google Translate TTS).
- On Linux, ensure
mpg123is installed for playback (system usage). - For Discord usage, ensure you have FFmpeg installed and available in PATH.
- Temporary files are automatically cleaned up after playback.
Troubleshooting
gtts.tts.gTTSError→ check your internet connection.FileNotFoundError: [Errno 2] No such file or directory: 'mpg123'→ installmpg123on Linux.ffmpeg not found→ install FFmpeg for Discord voice support.- Audio not playing on Windows (system usage) → check if your system has a default MP3 player set.
Contributing
- Fork this repository and make your changes.
- Test the module to ensure everything works.
- Submit a pull request with a clear description.
License
- This project is licensed under the MIT License – see the LICENSE file for details.
Facing any Issues?
- You can open an issue on the GitHub repo.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ease_tts-2.1.1.tar.gz.
File metadata
- Download URL: ease_tts-2.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689400019374f7427e7484a2811e01b3eb767a5f07ba228b95438fdfc8d8baaf
|
|
| MD5 |
ead1b6bb428fb63d7a43b3753aee9682
|
|
| BLAKE2b-256 |
f7c5525f2e827e382ea594b0777cca70867a4bfb811ade5d3889203b0d02df9a
|
File details
Details for the file ease_tts-2.1.1-py3-none-any.whl.
File metadata
- Download URL: ease_tts-2.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0216d37f861ae458227bfa65a9a14936488be017c0d684af3565b13bba1db5b
|
|
| MD5 |
877533bfc4b84a9aedd19c32df3876ba
|
|
| BLAKE2b-256 |
c950a555646467c674bc8c26b48161f2a279d205a72c7652e82802fa7338bfd9
|