Fix swift example for generating subtitles. (#1362)

We need to invoke vad.flush() at the end.
This commit is contained in:
Fangjun Kuang
2024-09-20 11:44:25 +08:00
committed by GitHub
parent 647b63ea44
commit 73c90ec871

View File

@@ -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()