Debian Codegraph @

generate/silero/README.txt

raw
1 generate/silero/README.TXT
2 Anastasia Shchupak, 16 March, 30 May 2026
3
4 This folder documents how the file external/whispercpp/ggml-silero-vad-model-data.h was generated. This C header
5 contains the embedded Silero VAD (Voice Activity Detection) v6.2.0 model weights used by Praat's speech recognition.
6
7 Files in this folder
8 --------------------
9 README.txt
10 This file.
11
12 ggml-silero-v6.2.0.bin
13 The Silero VAD model (version 6.2.0) in the ggml format. This is the file from which the C header was generated.
14
15 convert-silero-vad-to-ggml.py
16 Slightly adapted (to match the output file name) Python script from whisper.cpp that converts
17 the original Silero VAD PyTorch model to the ggml format. Requires Python 3 with the silero-vad and numpy packages.
18
19 convert-silero-vad-to-ggml.sh
20 Shell script that installs an original Silero VAD v6.2.0 model and converts it to the ggml format,
21 using the python script convert-silero-vad-to-ggml.py. Included here to document how to obtain
22 ggml-silero-v6.2.0.bin from the original Silero VAD model.
23
24 How to obtain ggml-silero-vad-model-data.h from the included ggml-silero-v6.2.0.bin file
25 ----------------------------------------------------------------------------------------
26 Run the following command which produces ggml-silero-vad-model-data.h in the current folder,
27 which then needs to be copied to the external/whispercpp folder:
28 ```
29 xxd -i -n ggml_silero_bin ggml-silero-v6.2.0.bin > ggml-silero-vad-model-data.h
30 ```
31
32 How to obtain the ggml-silero-v6.2.0.bin file
33 ---------------------------------------------
34 You can download it from here: `https://huggingface.co/ggml-org/whisper-vad`.
35 If you need to recreate ggml-silero-v6.2.0.bin from scratch, then use the following command:
36 ```
37 ./convert-silero-vad-to-ggml.sh v6.2.0
38 ```