Skip to main content

A developer-friendly, plug-and-play TTS library for Python

Project description

pyttsgen

pyttsgen is a plug-and-play TTS (Text-to-Speech) generator for Python. It supports:

  • 🔧 Python scripting
  • 🖥️ CLI access
  • 🌐 Streamlit UI

🔌 Installation

pip install pyttsgen
🧪 Usage


1. 🧑‍💻 Python Scripting
python

from pyttsgen import TTS

tts = TTS()
tts.speak_to_file("Hello from Python!", "hello.mp3")
audio_bytes = tts.speak_to_bytes("In-memory audio!")
base64_audio = tts.speak_to_base64("Base64 audio for web!")


2. 💻 CLI

pyttsgen "This is CLI-based speech" --voice en-GB-RyanNeural --output speech.mp3
List all voices

pyttsgen --list-voices
Show usage help

pyttsgen


3. 🌐 UI (Streamlit)

Typing "app" in the CLI
Opens a browser UI to enter text and download audio.

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

pyttsgen-0.1.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyttsgen-0.1.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pyttsgen-0.1.2.tar.gz.

File metadata

  • Download URL: pyttsgen-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for pyttsgen-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6cdd6cdb04692acd571c5b2636a584272ede9c8557af2ed41ed4040179eb3d10
MD5 f9310508ebf444430c4298f6b1445034
BLAKE2b-256 413136ff452751e540ea37e92c04ba99306093c9cdcc2f5045c6cc220af50f2e

See more details on using hashes here.

File details

Details for the file pyttsgen-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyttsgen-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for pyttsgen-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 24e3000aee760ea191f19272852a7d8131c9a05b6ca144bbda936abb75f00128
MD5 4fd9d0553afea738cf7bd0a83f87b578
BLAKE2b-256 e4e582277a207b8ae63cc1c0b9b92b634b2be6fd13a54e52e349418d3eb58444

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page