How karansinghgit/speaktype works
SpeakType is an offline-first desktop dictation app for macOS, Windows, and Linux. Users choose or download an on-device speech model, invoke a shortcut, record speech, transcribe and clean up the text, then paste it into the focused app; local history supports replay and usage statistics. The repository contains a Swift macOS app and a React/Rust desktop app. The workflow is documented in the README, but desktop runtime internals were not sampled; those connections are left unverified rather than inferred.
Main entry points: TranscriptionManager.swift Transcription router · MiniRecorderView.swift Recorder pill · ModelDownloadService.swift Model downloads · MiniRecorderWindowController.swift Recorder window
Components 25
Dictation capture
- Recorder pill
speaktype/Views/Overlays/MiniRecorderView.swift - Recorder window
speaktype/Controllers/MiniRecorderWindowController.swift - Audio recording
speaktype/Services/AudioRecordingService.swift
Speech and models
- Transcription router
speaktype/Services/Transcription/TranscriptionManager.swift - Whisper engine
speaktype/Services/WhisperService.swift - Parakeet engine
speaktype/Services/Transcription/ParakeetEngine.swift - Engine contract
speaktype/Services/Transcription/SpeechToTextEngine.swift - Model catalog
speaktype/Models/AIModel.swift - Model downloads
speaktype/Services/ModelDownloadService.swift
Local data
- Model storage
speaktype/Utilities/ModelStorage.swift - Dictionary cleanup
speaktype/Services/DictionaryService.swift - Dictation history
speaktype/Services/HistoryService.swift
App experience
- Desktop screens
desktop/src/screens - Screen routes
desktop/src/app/routes.ts - Dashboard and stats
speaktype/Views/Screens/Dashboard/DashboardView.swift - History screen
speaktype/Views/Screens/History/HistoryView.swift - Dictionary screen
speaktype/Views/Screens/Dictionary/DictionaryView.swift - Model settings
speaktype/Views/Screens/Settings/AIModelsView.swift - Onboarding
speaktype/Views/Screens/Onboarding/OnboardingView.swift - Version updates
speaktype/Services/UpdateService.swift - Update dialog
speaktype/Views/Components/UpdateSheet.swift
Desktop integration
- Shortcut capture
desktop/src-tauri/src/platform/mod.rs - Clipboard and paste
speaktype/Services/ClipboardService.swift
Other components
- User
- Focused app
Connections 30
- User → Shortcut capture: holds shortcut
README.md - Shortcut capture → Recorder pill: starts dictation
- Recorder window → Recorder pill: hosts view
speaktype/Controllers/MiniRecorderWindowController.swift - Recorder window → Audio recording: signals recording
speaktype/Controllers/MiniRecorderWindowController.swift - Recorder pill → Audio recording: records audio
speaktype/Views/Overlays/MiniRecorderView.swift - Recorder pill → Transcription router: requests transcription
speaktype/Views/Overlays/MiniRecorderView.swift - Transcription router → Whisper engine: routes by model
speaktype/Services/Transcription/TranscriptionManager.swift - Transcription router → Parakeet engine: routes by model
speaktype/Services/Transcription/TranscriptionManager.swift - Transcription router → Dictionary cleanup: cleans transcript
speaktype/Services/Transcription/TranscriptionManager.swift - Whisper engine → Engine contract: conforms to
speaktype/Services/Transcription/TranscriptionManager.swift - Parakeet engine → Engine contract: conforms to
speaktype/Services/Transcription/ParakeetEngine.swift - Model catalog → Transcription router: selects engine
speaktype/Services/Transcription/TranscriptionManager.swift - Model downloads → Model storage: stores models
speaktype/Services/ModelDownloadService.swift - Model downloads → Model catalog: uses catalog
speaktype/Services/ModelDownloadService.swift - Model downloads → Transcription router: loads selected model
speaktype/Services/ModelDownloadService.swift - Whisper engine → Model storage: loads local models
speaktype/Services/WhisperService.swift - Recorder pill → Dictation history: records dictations
speaktype/Views/Overlays/MiniRecorderView.swift - Recorder window → Clipboard and paste: pastes result
speaktype/Controllers/MiniRecorderWindowController.swift - Clipboard and paste → Focused app: inserts text
README.md - User → Desktop screens: uses app screens
README.md - Desktop screens → Screen routes: uses navigation
- User → Dashboard and stats: views activity
README.md - User → History screen: reviews dictations
README.md - History screen → Dictation history: reads history
- User → Dictionary screen: edits terms
README.md - Dictionary screen → Dictionary cleanup: manages entries
- User → Model settings: chooses models
README.md - Model settings → Model downloads: requests downloads
- User → Onboarding: sets up app
README.md - Update dialog → Version updates: checks updates
speaktype/Views/Components/UpdateSheet.swift