wyoming-piper-gpu/README.md

56 lines
1.2 KiB
Markdown

# wyoming-piper-gpu
Wyoming Piper TTS docker container with Nvidia GPU support for Home-Assistant
https://github.com/rhasspy/wyoming-piper
[![Publish Docker image](https://github.com/slackr31337/wyoming-piper-gpu/actions/workflows/docker-image.yml/badge.svg)](https://github.com/slackr31337/wyoming-piper-gpu/actions/workflows/docker-image.yml)
docker pull ghcr.io/slackr31337/wyoming-piper-gpu:latest
# Use environment variable to set piper voice
> PIPER_VOICE="en_US-lessac-medium"
>
> PIPER_LENGTH="1.0"
>
> PIPER_NOISE="0.667"
>
> PIPER_NOISEW="0.333"
>
> PIPER_SPEAKER="0"
>
> PIPER_SILENCE="0.8"
>
> LOG_LEVEL="debug" # For debug logging
# Docker compose
```
wyoming-piper:
image: slackr31337/wyoming-piper-gpu:latest
container_name: wyoming-piper
environment:
- PIPER_VOICE=en_US-amy-medium
ports:
- 10200:10200
volumes:
- /path/to/persistent/data:/data
restart: unless-stopped
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
- utility
- compute
```