Skip to content

Commit cbe557f

Browse files
authored
docs : add VAD model download instructions [no ci] (#3180)
1 parent 273af4a commit cbe557f

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,32 @@ The following VAD models are currently supported:
751751
[Silero-vad](https://github.com/snakers4/silero-vad) is a lightweight VAD model
752752
written in Python that is fast and accurate.
753753

754-
This model can be converted to ggml using the following command:
754+
Models can be downloaded by running the following command on Linux or MacOS:
755+
```console
756+
$ ./models/download-vad-model.sh silero-v5.1.2
757+
Downloading ggml model silero-v5.1.2 from 'https://huggingface.co/ggml-org/whisper-vad' ...
758+
ggml-silero-v5.1.2.bin 100%[==============================================>] 864.35K --.-KB/s in 0.04s
759+
Done! Model 'silero-v5.1.2' saved in '/path/models/ggml-silero-v5.1.2.bin'
760+
You can now use it like this:
761+
762+
$ ./build/bin/whisper-cli -vm /path/models/ggml-silero-v5.1.2.bin --vad -f samples/jfk.wav -m models/ggml-base.en.bin
763+
764+
```
765+
And the following command on Windows:
766+
```console
767+
> .\models\download-vad-model.cmd silero-v5.1.2
768+
Downloading vad model silero-v5.1.2...
769+
Done! Model silero-v5.1.2 saved in C:\Users\danie\work\ai\whisper.cpp\ggml-silero-v5.1.2.bin
770+
You can now use it like this:
771+
772+
C:\path\build\bin\Release\whisper-cli.exe -vm C:\path\ggml-silero-v5.1.2.bin --vad -m models/ggml-base.en.bin -f samples\jfk.wav
773+
774+
```
775+
776+
To see a list of all available models, run the above commands without any
777+
arguments.
778+
779+
This model can be also be converted manually to ggml using the following command:
755780
```console
756781
$ python3 -m venv venv && source venv/bin/activate
757782
$ (venv) pip install silero-vad

0 commit comments

Comments
 (0)