diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-09 10:45:30 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-09 10:45:30 +0300 |
| commit | 54b4cccf924517bbc836b1b86227fb413281fdd5 (patch) | |
| tree | c7e2216d974267070cb0dbc4eaa85dae7ff68b6a | |
| parent | a1b5f9cdc59938901123650fc0900067ac3447ca (diff) | |
| -rw-r--r-- | Makefile | 5 | ||||
| m--------- | batteries/whisper.cpp | 0 |
2 files changed, 3 insertions, 2 deletions
@@ -134,8 +134,9 @@ setup-whisper: build-whisper download-whisper-model build-whisper: ## Build whisper.cpp from source in batteries directory @echo "Building whisper.cpp from source in batteries directory..." - @if [ ! -d "batteries/whisper.cpp" ]; then \ + @if [ ! -f "batteries/whisper.cpp/CMakeLists.txt" ]; then \ echo "Cloning whisper.cpp repository to batteries directory..."; \ + rm -rf batteries/whisper.cpp; \ git clone https://github.com/ggml-org/whisper.cpp.git batteries/whisper.cpp; \ fi cd batteries/whisper.cpp && cmake -B build -DGGML_CUDA=ON -DWHISPER_SDL2=ON; cmake --build build --config Release -j 8 @@ -144,7 +145,7 @@ build-whisper: ## Build whisper.cpp from source in batteries directory download-whisper-model: ## Download Whisper model for STT in batteries directory @echo "Downloading Whisper model for STT..." @if [ ! -d "batteries/whisper.cpp/models" ]; then \ - mkdir -p "batteries/whisper.cpp/models" \ + mkdir -p "batteries/whisper.cpp/models"; \ fi curl -o batteries/whisper.cpp/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" @echo "Whisper model downloaded successfully!" diff --git a/batteries/whisper.cpp b/batteries/whisper.cpp -Subproject a88b93f85f08fc6045e5d8a8c3f94b7be0ac8bc +Subproject 30c5194c9691e4e9a98b3dea9f19727397d3f46 |
