Add Flush to VAD so that the last segment can be detected. (#1099)
This commit is contained in:
@@ -856,6 +856,10 @@ func (vad *VoiceActivityDetector) Reset() {
|
||||
C.SherpaOnnxVoiceActivityDetectorReset(vad.impl)
|
||||
}
|
||||
|
||||
func (vad *VoiceActivityDetector) Flush() {
|
||||
C.SherpaOnnxVoiceActivityDetectorFlush(vad.impl)
|
||||
}
|
||||
|
||||
// Spoken language identification
|
||||
|
||||
type SpokenLanguageIdentificationWhisperConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user