A developer-friendly, plug-and-play TTS library for Python supporting multiple outputs and integrations.
Project description
pyttsgen
pyttsgen is a developer-first, plug-and-play Text-to-Speech (TTS) library for Python. It supports multiple output formats (MP3, bytes, Base64), works with asynchronous and synchronous calls, and is framework-agnostic. Use it in your FastAPI, Flask, Streamlit, or any Python application with minimal code.
Features
- Easy API: One-line commands such as
tts.speak_to_file(text, output_path) - Multiple Outputs: Get audio as files, bytes, or Base64 strings.
- Batch Processing: Generate TTS audio for multiple text inputs.
- CLI Support: Generate audio via the terminal with options to list voices.
- One-Command UI: Instantly open a Streamlit UI to test and generate speech.
- Framework Integration: Examples available for FastAPI, Flask, Streamlit, and more.
- Voice Catalog: Use built-in voice definitions with filtering capabilities.
Installation
Install via pip:
pip install pyttsgen
Once installed, you can open the interactive UI with a single command:
pyttsgen app
This command will launch the built-in Streamlit app in your browser, allowing you to try out TTS generation visually.
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 pyttsgen-0.1.1.tar.gz.
File metadata
- Download URL: pyttsgen-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8ed48077d5f5e6dca0d898cfa6a72d37650b3234bd19b1f97ba8fd0017c851d
|
|
| MD5 |
ffa5a5e4dbd42020692888afb3bd822e
|
|
| BLAKE2b-256 |
a55bb2c7e57f1591e72737ef91444d675ccb2f8638b34006e1a06f8d1ccf55bc
|
File details
Details for the file pyttsgen-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyttsgen-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5198e0ea44677d9626e6c3ba8a126dd958e3b3ffcd78e40408c3b1dd1c85c5c
|
|
| MD5 |
ed2eb4df0cef39c577fb06779f18d35d
|
|
| BLAKE2b-256 |
691fd3b71d6285fe2967944543fd1bd81063f91c1b003eb69ad97010ebf0f5e9
|