Fix swift example for generating subtitles. (#1362)
We need to invoke vad.flush() at the end.
This commit is contained in:
@@ -179,6 +179,7 @@ func run() {
|
||||
vad.acceptWaveform(samples: [Float](array[offset..<end]))
|
||||
}
|
||||
|
||||
vad.flush()
|
||||
var index: Int = 0
|
||||
while !vad.isEmpty() {
|
||||
let s = vad.front()
|
||||
|
||||
Reference in New Issue
Block a user