Support silero_vad version 5 (#1064)

This commit is contained in:
Fangjun Kuang
2024-06-29 11:45:04 +08:00
committed by GitHub
parent 8c4f576f1b
commit 61c7eb3063
6 changed files with 203 additions and 50 deletions

View File

@@ -39,6 +39,11 @@ class SileroVadModel : public VadModel {
int32_t WindowSize() const override;
// For silero vad V4, it is WindowSize().
// For silero vad V5, it is WindowSize()-64 for 16kHz and
// WindowSize()-32 for 8kHz
int32_t WindowShift() const override;
int32_t MinSilenceDurationSamples() const override;
int32_t MinSpeechDurationSamples() const override;