Skip to content

Commit

Permalink
Fix vad.Flush(). (#1329)
Browse files Browse the repository at this point in the history
Fixes #1314
  • Loading branch information
csukuangfj authored Sep 8, 2024
1 parent 1977c8d commit 363b8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sherpa-onnx/csrc/voice-activity-detector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class VoiceActivityDetector::Impl {
return;
}

int32_t end = buffer_.Tail() - model_->MinSilenceDurationSamples();
int32_t end = buffer_.Tail()
if (end <= start_) {
return;
}
Expand Down

0 comments on commit 363b8e4

Please sign in to comment.