Real-time speech-to-text using OpenAI Whisper (faster-whisper). Features browser audio capture, WebSocket streaming, and customizable display settings. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
731 B
YAML
30 lines
731 B
YAML
services:
|
|
live-captions:
|
|
build: .
|
|
container_name: live-captions
|
|
ports:
|
|
- "${PORT:-5000}:5000"
|
|
volumes:
|
|
# Persist SQLite database
|
|
- ./data:/app/data
|
|
# Persist Whisper models
|
|
- whisper-models:/home/appuser/.cache/huggingface
|
|
# Persist recordings
|
|
- ./recordings:/app/recordings
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- PORT=5000
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/health')"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
|
|
volumes:
|
|
whisper-models:
|
|
name: live-captions-whisper-models
|