summaryrefslogtreecommitdiff
path: root/batteries
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-07 18:13:11 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-07 18:13:11 +0300
commitc8f00198d6f0ad66269753252f56485ee346d413 (patch)
treefd6cbfe88718d19dad1d4765397329da473822fb /batteries
parentc5a24b2a3f30fe60888702b09e409647616c18d0 (diff)
Dep (stt): use ffmpeg instead of portaudio
Diffstat (limited to 'batteries')
-rw-r--r--batteries/docker-compose.yml20
1 files changed, 13 insertions, 7 deletions
diff --git a/batteries/docker-compose.yml b/batteries/docker-compose.yml
index 7cf401b..84b2262 100644
--- a/batteries/docker-compose.yml
+++ b/batteries/docker-compose.yml
@@ -6,19 +6,27 @@ services:
ports:
- "8081:8081"
volumes:
- - whisper_models:/app/models
+ - ./whisper.cpp/models/ggml-large-v3-turbo-q5_0.bin:/app/models/ggml-large-v3-turbo-q5_0.bin
working_dir: /app
entrypoint: ""
command: >
sh -c "
- if [ ! -f /app/models/ggml-large-v3-turbo.bin ]; then
- echo 'Downloading ggml-large-v3-turbo model...'
- ./download-ggml-model.sh large-v3-turbo /app/models
+ if [ ! -f /app/models/ggml-large-v3-turbo-q5_0.bin ]; then
+ echo 'Downloading ggml-large-v3-turboq5_0 model...'
+ curl -o /app/models/ggml-large-v3-turbo-q5_0.bin -L "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo-q5_0.bin?download=true"
fi &&
- ./build/bin/whisper-server -m /app/models/ggml-large-v3-turbo.bin -t 4 -p 1 --port 8081 --host 0.0.0.0
+ ./build/bin/whisper-server -m /app/models/ggml-large-v3-turbo-q5_0.bin -t 4 -p 1 --port 8081 --host 0.0.0.0
"
environment:
- WHISPER_LOG_LEVEL=3
+ # For GPU support, uncomment the following lines:
+ deploy:
+ resources:
+ reservations:
+ devices:
+ - driver: nvidia
+ count: 1
+ capabilities: [gpu]
# Restart policy in case the service fails
restart: unless-stopped
@@ -45,7 +53,5 @@ services:
volumes:
models:
driver: local
- audio:
- driver: local
whisper_models:
driver: local