From 73c90ec871706318795e2b14af2cd3525d2a610a Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Fri, 20 Sep 2024 11:44:25 +0800 Subject: [PATCH] Fix swift example for generating subtitles. (#1362) We need to invoke vad.flush() at the end. --- swift-api-examples/generate-subtitles.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/swift-api-examples/generate-subtitles.swift b/swift-api-examples/generate-subtitles.swift index d24c9efa8..d2c2a67f1 100644 --- a/swift-api-examples/generate-subtitles.swift +++ b/swift-api-examples/generate-subtitles.swift @@ -179,6 +179,7 @@ func run() { vad.acceptWaveform(samples: [Float](array[offset..