StreamSpeak is a powerful, lightweight neural text-to-speech assistant that runs locally on your system. It uses a background daemon to provide high-quality, natural-sounding speech synthesis with near-zero latency.
Author: Annuar (ramo-dev)
- ⚡ Instant Response: Near-zero latency (~0.03s) via background daemon.
- ⚙️ Highly Configurable: Customize default voice, speed, and add custom voices via a simple config file.
- 🧠 High-Quality Voices: Natural and expressive neural speech.
- 🔧 Customizable: Adjustable speed and easy voice switching.
- 🌐 Universal: Works from any directory via the
streamspeakcommand. - 🚀 Auto-Starting: The daemon starts automatically on first use.
You can install StreamSpeak with a single command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/ramo-dev/streamspeak/main/install.sh)"This will clone the repository, download the necessary voice models, and set up the streamspeak command.
To uninstall, run the uninstall.sh script in the ~/.streamspeak directory.
# Speak text with the default voice (configured in ~/.streamspeak/config.conf)
streamspeak "Hello, I am StreamSpeak!"
# Pipe text to StreamSpeak
echo "Processing your request..." | streamspeak# List available voice aliases from your config file
streamspeak --list-voices
# Use a different voice alias
streamspeak -v ryan "I'm using Ryan's voice"
# Adjust speech speed
streamspeak -s 0.8 "I'm speaking slowly and clearly"# Check the daemon's status
streamspeak --status
# Start the daemon with a specific voice
streamspeak --start ryan
# Stop the daemon
streamspeak --stopThe heart of StreamSpeak's customization is the ~/.streamspeak/config.conf file.
Edit the config.conf file to change the default voice and speed:
# ~/.streamspeak/config.conf
DEFAULT_VOICE="ryan"
DEFAULT_SPEED="1.2"You can add your own voice models by defining them in the VOICES array within config.conf.
-
Add the alias and path to the config file:
# ~/.streamspeak/config.conf declare -A VOICES=( ["lessac"]="en_US-lessac-medium" ["ryan"]="en_US-ryan-medium" # Add your custom voice here ["my-voice"]="/path/to/your/custom/voice.onnx" )
-
Use your custom voice:
streamspeak -v my-voice "This is my custom voice."
Contributions are welcome! Please see the CONTRIBUTING.md file for details.
This project is licensed under the MIT License - see the LICENSE file for details.