/ tag
Concurrency
1 post on this topic.
-
Low-latency on-device captions in Swift with SpeechAnalyzer
Transcribing a 50-minute audiobook chapter before showing the first caption is unusable. How I get the first line in ~1–2s: a playhead-windowed AsyncStream feeding iOS 26's SpeechAnalyzer, with the feeder and results consumer racing on separate tasks — all on-device.