ggerganov commited on
Commit
2110f23
·
unverified ·
1 Parent(s): a075b62

stream : update README.md + comments

Browse files
examples/stream/README.md CHANGED
@@ -10,7 +10,7 @@ More info is available in [issue #10](https://github.com/ggerganov/whisper.cpp/i
10
 
11
  https://user-images.githubusercontent.com/1991296/194935793-76afede7-cfa8-48d8-a80f-28ba83be7d09.mp4
12
 
13
- ## Slidingwindow mode
14
 
15
  Setting the `--step` argument to `0` enables the sliding window mode:
16
 
 
10
 
11
  https://user-images.githubusercontent.com/1991296/194935793-76afede7-cfa8-48d8-a80f-28ba83be7d09.mp4
12
 
13
+ ## Sliding window mode with VAD
14
 
15
  Setting the `--step` argument to `0` enables the sliding window mode:
16
 
examples/stream/stream.cpp CHANGED
@@ -429,7 +429,7 @@ int main(int argc, char ** argv) {
429
 
430
  const int n_new_line = params.length_ms / params.step_ms - 1; // number of steps to print new line
431
 
432
- const bool use_vad = n_samples_step <= 0;
433
 
434
  params.no_timestamps = !use_vad;
435
  params.no_context = use_vad;
 
429
 
430
  const int n_new_line = params.length_ms / params.step_ms - 1; // number of steps to print new line
431
 
432
+ const bool use_vad = n_samples_step <= 0; // sliding window mode uses VAD
433
 
434
  params.no_timestamps = !use_vad;
435
  params.no_context = use_vad;