Skip to content

Commit

Permalink
fix whisper recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Apr 25, 2024
1 parent 46e893f commit c765295
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions recipes/llama-cpp/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ outputs:
source:
url: https://huggingface.co/jartine/llava-v1.5-7B-GGUF/resolve/main/llava-v1.5-7b-Q4_K.gguf?download=true
sha256: c91ebf0a628ceb25e374df23ad966cc1bf1514b33fecf4f0073f9619dec5b3f9

build:
noarch: generic
script:
Expand Down
13 changes: 10 additions & 3 deletions recipes/whisper-cpp/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ source:
sha256: 06eed84de310fdf5408527e41e863ac3b80b8603576ba0521177464b1b341a3a

outputs:
- package:
- package:
name: whisper-cpp

requirements:
build:
- ${{ compiler('cxx') }}
Expand All @@ -28,11 +29,17 @@ outputs:

- package:
name: whisper-cpp-base-en
version: 0.1.0
source:
url: https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin?download=true
sha256: a03779c86df3323075f5e796cb2ce5029f00ec8869eee3fdfb897afe36c6d002
file_name: ggml-base.en.bin

requirements:
run:
- whisper-cpp

build:
script:
- ./models/download-ggml-model.sh base.en
- mkdir -p $PREFIX/share/whisper-cpp/models
- cp ./models/ggml-base.en.bin $PREFIX/share/whisper-cpp/models/ggml-base.en.bin
- cp ./ggml-base.en.bin $PREFIX/share/models/whisper-cpp/ggml-base.en.bin
4 changes: 2 additions & 2 deletions whisper/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ channels = ["../output", "conda-forge"]
platforms = ["osx-arm64"]

[tasks]
start = "whisper-cpp-stream -m $CONDA_PREFIX/share/whisper-cpp/models/ggml-base.en.bin"
start = "whisper-cpp-stream -m $CONDA_PREFIX/share/models/whisper-cpp/ggml-base.en.bin"
convert = "ffmpeg -ar 16000 -ac 1 -c:a pcm_s16le output.wav -i "
transcribe = "whisper-cpp -m $CONDA_PREFIX/share/whisper-cpp/models/ggml-base.en.bin"
transcribe = "whisper-cpp -m $CONDA_PREFIX/share/models/whisper-cpp/ggml-base.en.bin"
download_example = "curl -o speech.wav https://upload.wikimedia.org/wikipedia/commons/7/75/Marshall_Plan_Speech.wav"

[dependencies]
Expand Down

0 comments on commit c765295

Please sign in to comment.