Add Flush to VAD so that the last segment can be detected. (#1099)
This commit is contained in:
@@ -29,7 +29,7 @@ class CircularBuffer {
|
||||
}
|
||||
|
||||
reset() {
|
||||
return addon.circularBufferReset(this.handle);
|
||||
addon.circularBufferReset(this.handle);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,11 @@ config = {
|
||||
}
|
||||
|
||||
reset() {
|
||||
return addon.VoiceActivityDetectorResetWrapper(this.handle);
|
||||
addon.VoiceActivityDetectorResetWrapper(this.handle);
|
||||
}
|
||||
|
||||
flush() {
|
||||
addon.VoiceActivityDetectorFlushWrapper(this.handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user