mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-09-30 11:36:38 +02:00
vad : Silero VAD v6.2.0 (#3524)
* Add ggml-silero-v6.2.0 to download candidates * Make default VAD model ggml-silero-v6.2.0 * Make VAD model in documentations ggml-silero-v6.2.0
This commit is contained in:
@@ -54,7 +54,7 @@ Before using VAD, download a VAD model:
|
||||
|
||||
```shell
|
||||
# From the whisper.cpp root directory
|
||||
./models/download-vad-model.sh silero-v5.1.2
|
||||
./models/download-vad-model.sh silero-v6.2.0
|
||||
```
|
||||
|
||||
### VAD Parameters
|
||||
@@ -85,7 +85,7 @@ const vadParams = {
|
||||
model: path.join(__dirname, "../../models/ggml-base.en.bin"),
|
||||
fname_inp: path.join(__dirname, "../../samples/jfk.wav"),
|
||||
vad: true,
|
||||
vad_model: path.join(__dirname, "../../models/ggml-silero-v5.1.2.bin"),
|
||||
vad_model: path.join(__dirname, "../../models/ggml-silero-v6.2.0.bin"),
|
||||
vad_threshold: 0.5,
|
||||
progress_callback: (progress) => console.log(`Progress: ${progress}%`)
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ const vadParams = {
|
||||
max_len: 0,
|
||||
// VAD parameters
|
||||
vad: true,
|
||||
vad_model: path.join(__dirname, "../../models/ggml-silero-v5.1.2.bin"), // You need to download this model
|
||||
vad_model: path.join(__dirname, "../../models/ggml-silero-v6.2.0.bin"), // You need to download this model
|
||||
vad_threshold: 0.5,
|
||||
vad_min_speech_duration_ms: 250,
|
||||
vad_min_silence_duration_ms: 100,
|
||||
@@ -63,7 +63,7 @@ async function runVADExample() {
|
||||
const fs = require('fs');
|
||||
if (!fs.existsSync(vadParams.vad_model)) {
|
||||
console.log("⚠️ VAD model not found. Please download the VAD model first:");
|
||||
console.log(" ./models/download-vad-model.sh silero-v5.1.2");
|
||||
console.log(" ./models/download-vad-model.sh silero-v6.2.0");
|
||||
console.log(" Or run: python models/convert-silero-vad-to-ggml.py");
|
||||
console.log("\n Falling back to traditional transcription without VAD...\n");
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ The examples can be run using the following command, which uses a model
|
||||
that we use internally for testing:
|
||||
```console
|
||||
./build/bin/vad-speech-segments \
|
||||
-vad-model models/for-tests-silero-v5.1.2-ggml.bin \
|
||||
-vad-model models/for-tests-silero-v6.2.0-ggml.bin \
|
||||
--file samples/jfk.wav \
|
||||
--no-prints
|
||||
|
||||
|
||||
Reference in New Issue
Block a user