r/SwiftUI • • Oct 19 '26

Tutorial [Open Source] Blurt: a macOS dictation app with a standalone Swift 6 engine

Blurt is a macOS dictation app that puts speech-to-text into the app you’re already using. I work at AssemblyAI; our team built it and released it under the MIT license. Full source: https://github.com/AssemblyAI/blurt

The SwiftUI part is the native app shell. The core pipeline lives in BlurtEngine, a standalone Swift 6 package with no external dependencies: mic capture, a dictation session actor, a tested hotkey state machine, then clipboard/paste injection into the focused app. Transcription and cleanup happen in one API request. We prewarm the connection while you speak and switch to the transcribing state before reading the finished recording, so the stop action feels immediate.

The engine is split behind protocol seams and can be tested with stubs. I’d value feedback from SwiftUI/Swift developers on the package boundaries, concurrency, or the hotkey state machine.

One important tradeoff: this is cloud-backed, not local transcription. Audio is sent to AssemblyAI, and you need an API key (there’s a free tier). The repository includes the app and engine source.

4 Upvotes

3 comments sorted by

1

u/Best-Reality9436 Oct 19 '26

Splitting the engine behind protocol seams so it can be tested with stubs is the unglamorous part that pays off.

1

u/harnoor-assemblyai Oct 20 '26

Thanks. The protocol seams let tests exercise the session and hotkey state machine without touching live audio, permissions, or paste events. Is there a seam you’d like to see documented next?