diff --git a/whisper/Dockerfile b/whisper/Dockerfile new file mode 100644 index 0000000..d4dbaa9 --- /dev/null +++ b/whisper/Dockerfile @@ -0,0 +1,5 @@ +FROM ghcr.io/collabora/whisperlive-openvino:latest + +# Install pyannote.audio and its dependencies. +# --no-cache-dir keeps the image layer smaller. +RUN pip install --no-cache-dir pyannote.audio diff --git a/whisper/whisper-live.env b/whisper/whisper-live.env deleted file mode 100644 index 09cb0f5..0000000 --- a/whisper/whisper-live.env +++ /dev/null @@ -1,45 +0,0 @@ -# whisper-live.env -# Configuration for hwdsl2/whisper-live-server on Intel Core i9-13700K (CPU-only) -# Copy this file to the same directory as docker-compose.yml before starting. - -# --- Model --- -# 'medium.en' is the sweet spot for CPU-only English meetings: -# accurate, comfortably real-time, ~1.5 GB RAM. -# Upgrade to 'large-v3-turbo' if accuracy is more important than latency; -# downgrade to 'small.en' if you find CPU usage too high. -WHISPERLIVE_MODEL=medium.en - -# --- Language --- -# Hardcode to 'en' to skip autodetection — saves ~100 ms per chunk. -# Change to 'auto' if your meetings include other languages. -WHISPERLIVE_LANGUAGE=en - -# --- Ports --- -WHISPERLIVE_PORT=9090 # WebSocket (streaming clients) -WHISPERLIVE_REST_PORT=8000 # REST API - -# --- Concurrency --- -# 1 simultaneous session is safest for real-time CPU-only use. -# Increase to 2 cautiously — each session competes for the same cores. -WHISPERLIVE_MAX_CLIENTS=1 - -# --- Session length --- -# 7200 seconds = 2 hours, suitable for a full meeting recording. -WHISPERLIVE_MAX_CONNECTION_TIME=7200 - -# --- Voice Activity Detection --- -# Keep enabled: VAD skips silence, which meaningfully reduces CPU load -# during pauses and cross-talk at a 12-person table. -WHISPERLIVE_USE_VAD=true - -# --- CPU threads --- -# The 13700K has 8 P-cores. Setting threads to 8 gives best single-session -# latency. If you raise MAX_CLIENTS to 2, drop this to 4. -WHISPERLIVE_THREADS=8 - -# --- Logging --- -WHISPERLIVE_LOG_LEVEL=INFO - -# --- Backend --- -WHISPER_BACKEND=openvino -