The WhispyWyser project is designed to provide a flexible and efficient implementation of Voice Assistant for Home Assistant based on Faster Whisper and Wyoming protocol. This project supports both CPU and CUDA architectures, allowing for optimized performance based on the available hardware.
Project description
WhispyWyser - Voice Assistant for Home Assistant
WhispyWyser is a flexible and efficient voice assistant for Home Assistant, leveraging Faster Whisper for speech recognition and the Wyoming protocol for seamless integration. It supports both CPU and CUDA architectures for optimized performance.
Features
- 🎙️ High-accuracy speech-to-text with Faster Whisper
- 🏠 Deep Home Assistant integration
- 🐳 Docker support for easy deployment
- 🚀 GPU acceleration support (CUDA)
- 🔌 Wyoming protocol for extensibility
- 🔒 Secure authentication with long-lived tokens
Prerequisites
- Docker and Docker Compose
- Home Assistant instance (local or remote)
- NVIDIA GPU with drivers (for CUDA support)
Quick Start
-
Clone the repository
git clone https://github.com/yourusername/whispywyser.git cd whispywyser
-
Configure environment
cp .env.example .env # Edit .env with your configuration nano .env
-
Start the service
# For CPU docker-compose up -d whispywyser-cpu # For GPU (CUDA) docker-compose up -d whispywyser-gpu
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
HA_TOKEN |
✅ | Home Assistant long-lived access token |
HOME_ASSISTANT_URL |
✅ | URL of your Home Assistant instance |
HF_TOKEN |
❌ | Hugging Face Hub token (for private models) |
MODEL |
❌ | Model name (default: openai/whisper-large-v3) |
DEVICE |
❌ | cuda or cpu (auto-detected) |
LANGUAGE |
❌ | Language code (e.g., en, de) |
Generating a Long-Lived Access Token
- In Home Assistant, click on your profile
- Scroll down to "Long-Lived Access Tokens"
- Click "Create Token"
- Copy the token and add it to your
.envfile
Docker Compose
The project includes two services:
- whispywyser-gpu: For systems with NVIDIA GPU
- whispywyser-cpu: For CPU-only systems
Volumes
/data: Stores models and configuration
Ports
10300: Wyoming protocol port
Development
Building the Image
# For CPU
docker-compose build whispywyser-cpu
# For GPU
docker-compose build whispywyser-gpu
Running Tests
docker-compose run whispywyser-cpu python -m pytest
Troubleshooting
Common Issues
-
CUDA errors
- Ensure NVIDIA drivers are installed
- Run
nvidia-smito verify GPU detection - Check Docker has access to GPU:
docker run --gpus all nvidia/cuda:11.0-base nvidia-smi
-
Connection to Home Assistant
- Verify
HOME_ASSISTANT_URLis correct - Check if the token has the right permissions
- Ensure Home Assistant is accessible from the container
- Verify
License
MIT
Acknowledgements
Project details
Release history Release notifications | RSS feed
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 whispywyser-0.0.22.tar.gz.
File metadata
- Download URL: whispywyser-0.0.22.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab79409cf974918a9b84bb6fc776ccc319473909b9b56517515fb3efbb210a78
|
|
| MD5 |
3aec5c0101da0940368fde27777ed63e
|
|
| BLAKE2b-256 |
6bdfef19f6b87ef9b5c9c7c040be958144c1be800b7046c629ca69162413c04e
|
File details
Details for the file whispywyser-0.0.22-py2.py3-none-any.whl.
File metadata
- Download URL: whispywyser-0.0.22-py2.py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d069894e0745ba59cac9b771f35e702ede0d539b31d415242d01e5e27d9a04da
|
|
| MD5 |
95706af78f929b01bea2837901a57c25
|
|
| BLAKE2b-256 |
90adbce86c4eac8f1f09f62fb4155f66940f4efee26400406fee7b04fdfa8ab2
|