Skip to main content

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 mpg123 is 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' → install mpg123 on 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.

Release files for ease-tts 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ease-tts 3.1.0
File Size Uploaded
ease_tts-3.1.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ease-tts 3.1.0
File Interpreter ABI Platform
ease_tts-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / ease_tts-3.1.0.tar.gz

Download URL ease_tts-3.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dfb604444e2a228b4f7bbbc62f14435508f6d72f7652e4335e00ff4b45e1f5d4
BLAKE2b-256 checksum
How to use checksums
e997111acaf6789c05eea341426c96f106b9211cb9ec041fe6ffa46f11907c5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / ease_tts-3.1.0-py3-none-any.whl

Download URL ease_tts-3.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e985c6c85383463005374fc04f0718883577f9324811535986e32133efc8886c
BLAKE2b-256 checksum
How to use checksums
6a47482c5e968f315a31f5d28729b5417b1b603e923f557e6b285bb3117ff94e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files

2.1.1

2 release files

2.0.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page