]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
stream : update README.md + comments
authorGeorgi Gerganov <redacted>
Fri, 16 Dec 2022 16:04:19 +0000 (18:04 +0200)
committerGeorgi Gerganov <redacted>
Fri, 16 Dec 2022 16:04:19 +0000 (18:04 +0200)
examples/stream/README.md
examples/stream/stream.cpp

index 6d57734e27d0103eb9b334718995a0aa6a3ac0a1..b030afb9a2e796cdfd7e978bb16c7edfa99f1016 100644 (file)
@@ -10,7 +10,7 @@ More info is available in [issue #10](https://github.com/ggerganov/whisper.cpp/i
 \r
 https://user-images.githubusercontent.com/1991296/194935793-76afede7-cfa8-48d8-a80f-28ba83be7d09.mp4\r
 \r
-## Slidingwindow mode\r
+## Sliding window mode with VAD\r
 \r
 Setting the `--step` argument to `0` enables the sliding window mode:\r
 \r
index 1b3586df12862105d6b4292bcc7e78898f712b54..c8e8b7477a07ef28dc5c1c31e462671fce487234 100644 (file)
@@ -429,7 +429,7 @@ int main(int argc, char ** argv) {
 
     const int n_new_line = params.length_ms / params.step_ms - 1; // number of steps to print new line
 
-    const bool use_vad = n_samples_step <= 0;
+    const bool use_vad = n_samples_step <= 0; // sliding window mode uses VAD
 
     params.no_timestamps = !use_vad;
     params.no_context    = use_vad;