Skip to content

Latest commit

Β 

History

History
30 lines (22 loc) Β· 1.51 KB

File metadata and controls

30 lines (22 loc) Β· 1.51 KB

voice_stream_app

Python License: MIT

A lightweight Python demo that prints lines of text to console and speaks them locally using pyttsx3 β€” a pure-Python offline text-to-speech library.

Perfect as a starting point for voice experiments, audio feedback tools, or real-time voice processing prototypes.

Features

  • Robust, thread-safe TTS β€” pyttsx3 engine initialized inside a dedicated thread (avoids common import-time & multi-threading issues)
  • CLI-friendly β€” full argparse support for customization
  • Continuous / one-shot modes β€” loop forever or run once
  • Save to audio file β€” synthesize text to WAV/MP3 without speaking
  • Graceful shutdown β€” handles Ctrl+C, SIGTERM, etc. cleanly
  • Basic unit tests + GitHub Actions CI setup
  • Modular design β€” easy to extend with live microphone input + speech-to-text (coming soon!)

Installation

# Recommended: use a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install pyttsx3 pytest flake8
# or if you use poetry/uv/pipenv β†’ add to your project