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.
- ποΈ 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
- Docker and Docker Compose
- Home Assistant instance (local or remote)
- NVIDIA GPU with drivers (for CUDA support)
-
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
| 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) |
- 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
The project includes two services:
- whispywyser-gpu: For systems with NVIDIA GPU
- whispywyser-cpu: For CPU-only systems
/data: Stores models and configuration
10300: Wyoming protocol port
# For CPU
docker-compose build whispywyser-cpu
# For GPU
docker-compose build whispywyser-gpudocker-compose run whispywyser-cpu python -m pytest-
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
MIT