Skip to content

Commit 01b8183

Browse files
committed
Make VAD model in documentations ggml-silero-v6.2.0
1 parent e63b6e9 commit 01b8183

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -755,23 +755,23 @@ written in Python that is fast and accurate.
755755

756756
Models can be downloaded by running the following command on Linux or MacOS:
757757
```console
758-
$ ./models/download-vad-model.sh silero-v5.1.2
759-
Downloading ggml model silero-v5.1.2 from 'https://huggingface.co/ggml-org/whisper-vad' ...
760-
ggml-silero-v5.1.2.bin 100%[==============================================>] 864.35K --.-KB/s in 0.04s
761-
Done! Model 'silero-v5.1.2' saved in '/path/models/ggml-silero-v5.1.2.bin'
758+
$ ./models/download-vad-model.sh silero-v6.2.0
759+
Downloading ggml model silero-v6.2.0 from 'https://huggingface.co/ggml-org/whisper-vad' ...
760+
ggml-silero-v6.2.0.bin 100%[==============================================>] 864.35K --.-KB/s in 0.04s
761+
Done! Model 'silero-v6.2.0' saved in '/path/models/ggml-silero-v6.2.0.bin'
762762
You can now use it like this:
763763

764-
$ ./build/bin/whisper-cli -vm /path/models/ggml-silero-v5.1.2.bin --vad -f samples/jfk.wav -m models/ggml-base.en.bin
764+
$ ./build/bin/whisper-cli -vm /path/models/ggml-silero-v6.2.0.bin --vad -f samples/jfk.wav -m models/ggml-base.en.bin
765765

766766
```
767767
And the following command on Windows:
768768
```console
769-
> .\models\download-vad-model.cmd silero-v5.1.2
770-
Downloading vad model silero-v5.1.2...
771-
Done! Model silero-v5.1.2 saved in C:\Users\danie\work\ai\whisper.cpp\ggml-silero-v5.1.2.bin
769+
> .\models\download-vad-model.cmd silero-v6.2.0
770+
Downloading vad model silero-v6.2.0...
771+
Done! Model silero-v6.2.0 saved in C:\Users\danie\work\ai\whisper.cpp\ggml-silero-v6.2.0.bin
772772
You can now use it like this:
773773

774-
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
774+
C:\path\build\bin\Release\whisper-cli.exe -vm C:\path\ggml-silero-v6.2.0.bin --vad -m models/ggml-base.en.bin -f samples\jfk.wav
775775

776776
```
777777

@@ -783,15 +783,15 @@ This model can be also be converted manually to ggml using the following command
783783
$ python3 -m venv venv && source venv/bin/activate
784784
$ (venv) pip install silero-vad
785785
$ (venv) $ python models/convert-silero-vad-to-ggml.py --output models/silero.bin
786-
Saving GGML Silero-VAD model to models/silero-v5.1.2-ggml.bin
786+
Saving GGML Silero-VAD model to models/silero-v6.2.0-ggml.bin
787787
```
788788
And it can then be used with whisper as follows:
789789
```console
790790
$ ./build/bin/whisper-cli \
791791
--file ./samples/jfk.wav \
792792
--model ./models/ggml-base.en.bin \
793793
--vad \
794-
--vad-model ./models/silero-v5.1.2-ggml.bin
794+
--vad-model ./models/silero-v6.2.0-ggml.bin
795795
```
796796

797797
### VAD Options

bindings/ruby/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,20 @@ Support for Voice Activity Detection (VAD) can be enabled by setting `Whisper::P
134134
```ruby
135135
Whisper::Params.new(
136136
vad: true,
137-
vad_model_path: "silero-v5.1.2",
137+
vad_model_path: "silero-v6.2.0",
138138
# other arguments...
139139
)
140140
```
141141

142-
When you pass the model name (`"silero-v5.1.2"`) or URI (`https://huggingface.co/ggml-org/whisper-vad/resolve/main/ggml-silero-v5.1.2.bin`), it will be downloaded automatically.
143-
Currently, "silero-v5.1.2" is registered as pre-converted model like ASR models. You also specify file path or URI of model.
142+
When you pass the model name (`"silero-v6.2.0"`) or URI (`https://huggingface.co/ggml-org/whisper-vad/resolve/main/ggml-silero-v6.2.0.bin`), it will be downloaded automatically.
143+
Currently, "silero-v6.2.0" is registered as pre-converted model like ASR models. You also specify file path or URI of model.
144144

145145
If you need configure VAD behavior, pass params for that:
146146

147147
```ruby
148148
Whisper::Params.new(
149149
vad: true,
150-
vad_model_path: "silero-v5.1.2",
150+
vad_model_path: "silero-v6.2.0",
151151
vad_params: Whisper::VAD::Params.new(
152152
threshold: 1.0, # defaults to 0.5
153153
min_speech_duration_ms: 500, # defaults to 250
@@ -330,7 +330,7 @@ Using VAD separately from ASR
330330
VAD feature itself is useful. You can use it separately from ASR:
331331
332332
```ruby
333-
vad = Whisper::VAD::Context.new("silero-v5.1.2")
333+
vad = Whisper::VAD::Context.new("silero-v6.2.0")
334334
vad
335335
.detect("path/to/audio.wav", Whisper::VAD::Params.new)
336336
.each_with_index do |segment, index|

examples/addon.node/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Before using VAD, download a VAD model:
5454

5555
```shell
5656
# From the whisper.cpp root directory
57-
./models/download-vad-model.sh silero-v5.1.2
57+
./models/download-vad-model.sh silero-v6.2.0
5858
```
5959

6060
### VAD Parameters
@@ -85,7 +85,7 @@ const vadParams = {
8585
model: path.join(__dirname, "../../models/ggml-base.en.bin"),
8686
fname_inp: path.join(__dirname, "../../samples/jfk.wav"),
8787
vad: true,
88-
vad_model: path.join(__dirname, "../../models/ggml-silero-v5.1.2.bin"),
88+
vad_model: path.join(__dirname, "../../models/ggml-silero-v6.2.0.bin"),
8989
vad_threshold: 0.5,
9090
progress_callback: (progress) => console.log(`Progress: ${progress}%`)
9191
};

examples/vad-speech-segments/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The examples can be run using the following command, which uses a model
1515
that we use internally for testing:
1616
```console
1717
./build/bin/vad-speech-segments \
18-
-vad-model models/for-tests-silero-v5.1.2-ggml.bin \
18+
-vad-model models/for-tests-silero-v6.2.0-ggml.bin \
1919
--file samples/jfk.wav \
2020
--no-prints
2121

tests/earnings21/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ First, you need to download a VAD model:
7777

7878
```
7979
$ # Execute the commands below in the project root dir.
80-
$ ./models/download-vad-model.sh silero-v5.1.2
80+
$ ./models/download-vad-model.sh silero-v6.2.0
8181
```
8282

8383
Create `eval.conf` with the following content:
8484

8585
```
86-
WHISPER_FLAGS = --no-prints --language en --output-txt --vad --vad-model ../../models/ggml-silero-v5.1.2.bin
86+
WHISPER_FLAGS = --no-prints --language en --output-txt --vad --vad-model ../../models/ggml-silero-v6.2.0.bin
8787
```

0 commit comments

Comments
 (0)