Compare commits

...

4 Commits

Author SHA1 Message Date
Chengzhi Mu
d3880fb2a0
Merge e7070cb78e into edea8a9c3c 2025-09-09 18:15:13 +00:00
Siva Mahadevan
edea8a9c3c
whisper : prefer curl over wget in download scripts (#3409)
Some checks failed
Bindings Tests (Ruby) / ubuntu-22 (push) Has been cancelled
Publish Docker image / Push Docker image to Docker Hub (map[dockerfile:.devops/main-cuda.Dockerfile platform:linux/amd64 tag:main-cuda]) (push) Has been cancelled
Publish Docker image / Push Docker image to Docker Hub (map[dockerfile:.devops/main-intel.Dockerfile platform:linux/amd64 tag:main-intel]) (push) Has been cancelled
Publish Docker image / Push Docker image to Docker Hub (map[dockerfile:.devops/main-musa.Dockerfile platform:linux/amd64 tag:main-musa]) (push) Has been cancelled
Publish Docker image / Push Docker image to Docker Hub (map[dockerfile:.devops/main.Dockerfile platform:linux/amd64 tag:main]) (push) Has been cancelled
Examples WASM / deploy-wasm-github-pages (push) Has been cancelled
On busybox-based systems like Alpine Linux, wget does not have
certain CLI flags such as '--no-config'. Thus, search for the
existence of 'curl' first in the PATH before wget. wget2 is
still the preferred download tool.
2025-09-08 06:32:19 +02:00
chengzhi.mu
e7070cb78e chore: update vad model path 2025-06-21 10:55:03 +08:00
chengzhi.mu
23f0e37315 vad: unify model download path 2025-06-21 10:54:31 +08:00
3 changed files with 6 additions and 6 deletions

View File

@ -783,7 +783,7 @@ This model can be also be converted manually to ggml using the following command
$ python3 -m venv venv && source venv/bin/activate
$ (venv) pip install silero-vad
$ (venv) $ python models/convert-silero-vad-to-ggml.py --output models/silero.bin
Saving GGML Silero-VAD model to models/silero-v5.1.2-ggml.bin
Saving GGML Silero-VAD model to models/ggml-silero-v5.1.2.bin
```
And it can then be used with whisper as follows:
```console
@ -791,7 +791,7 @@ $ ./build/bin/whisper-cli \
--file ./samples/jfk.wav \
--model ./models/ggml-base.en.bin \
--vad \
--vad-model ./models/silero-v5.1.2-ggml.bin
--vad-model ./models/ggml-silero-v5.1.2.bin
```
### VAD Options

View File

@ -20,7 +20,7 @@ def convert_silero_vad(output_path, print_tensors=True):
cleaned_dict[clean_key] = value
base, ext = os.path.splitext(output_path)
output_file = f"{base}-v{silero_version}-ggml{ext}"
output_file = f"ggml-{base}-v{silero_version}{ext}"
print(f"Saving GGML Silero-VAD model to {output_file}")
print("\nTensor info for debugging:")

View File

@ -119,12 +119,12 @@ fi
if [ -x "$(command -v wget2)" ]; then
wget2 --no-config --progress bar -O ggml-"$model".bin $src/$pfx-"$model".bin
elif [ -x "$(command -v wget)" ]; then
wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin
elif [ -x "$(command -v curl)" ]; then
curl -L --output ggml-"$model".bin $src/$pfx-"$model".bin
elif [ -x "$(command -v wget)" ]; then
wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin
else
printf "Either wget or curl is required to download models.\n"
printf "Either wget2, curl, or wget is required to download models.\n"
exit 1
fi