Add Flush to VAD so that the last segment can be detected. (#1099)
This commit is contained in:
@@ -207,6 +207,10 @@ class VoiceActivityDetector {
|
||||
SherpaOnnxBindings.voiceActivityDetectorReset?.call(ptr);
|
||||
}
|
||||
|
||||
void flush() {
|
||||
SherpaOnnxBindings.voiceActivityDetectorFlush?.call(ptr);
|
||||
}
|
||||
|
||||
Pointer<SherpaOnnxVoiceActivityDetector> ptr;
|
||||
final VadModelConfig config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user