Add Flush to VAD so that the last segment can be detected. (#1099)
This commit is contained in:
@@ -633,6 +633,10 @@ class SherpaOnnxVoiceActivityDetectorWrapper {
|
||||
func reset() {
|
||||
SherpaOnnxVoiceActivityDetectorReset(vad)
|
||||
}
|
||||
|
||||
func flush() {
|
||||
SherpaOnnxVoiceActivityDetectorFlush(vad)
|
||||
}
|
||||
}
|
||||
|
||||
// offline tts
|
||||
|
||||
Reference in New Issue
Block a user