feat(ios): live streaming transcription preview (Wispr-style)#25
Merged
Conversation
Groq Whisper is batch-only, so the live "words appear as you speak" feel comes from Apple's on-device SFSpeechRecognizer as a PREVIEW; the accurate final transcript still comes from the server and is what gets inserted. - LiveTranscriber: on-device SFSpeechRecognizer wrapper (partial results, requiresOnDeviceRecognition when supported, locale from the language setting). Degrades gracefully — if speech permission is denied/unavailable it's a no-op and the server path still works. - AudioRecorder fans its raw tap buffers out via onBuffer (one tap per node). - DictationController owns the LiveTranscriber, feeds it (capturing the transcriber, not the @mainactor self, so it stays off the audio thread's actor), starts/stops it with recording, and requests speech auth once. - KeyboardView shows the interim words during recording (head-truncated so the latest stay visible), falling back to the waveform until words arrive. - Info.plist: NSSpeechRecognition + NSMicrophone usage descriptions. Additive — the existing record→POST→insert flow is unchanged. Build- + test- verified (31 iOS tests). Co-Authored-By: Claude Opus 4.8 <[email protected]>
metaforismo
added a commit
that referenced
this pull request
Jun 11, 2026
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Groq Whisper is batch-only, so the live "words appear as you speak" feel comes from Apple's on-device SFSpeechRecognizer as a preview; the accurate final transcript still comes from the server and is what's inserted.
onBuffer(one tap per node).@MainActorself), starts/stops with recording, requests speech auth once.Additive — the existing record→POST→insert flow is unchanged. Build- + test-verified (31 iOS tests).
🤖 Generated with Claude Code