Skip to content

Commit 73c90ec

Browse files
authored
Fix swift example for generating subtitles. (#1362)
We need to invoke vad.flush() at the end.
1 parent 647b63e commit 73c90ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift-api-examples/generate-subtitles.swift

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ func run() {
179179
vad.acceptWaveform(samples: [Float](array[offset..<end]))
180180
}
181181

182+
vad.flush()
182183
var index: Int = 0
183184
while !vad.isEmpty() {
184185
let s = vad.front()

0 commit comments

Comments
 (0)