Home
Relevant source files
The following files were used as context for generating this wiki page:VoiceInk is a native macOS application designed for fast, accurate, and private voice-to-text transcription. It leverages local AI models to process voice data entirely offline, ensuring that user data remains on their device. The project's goal is to be the most efficient and privacy-focused voice-to-text solution for macOS.
The project is open-source under the GPL v3.0 license, allowing developers to build from source and contribute. A commercially licensed version is also available, which provides access to automatic updates, priority support, and helps fund continued development. The application requires macOS 14.0 or later.
Sources: README.md:1-25, 92-95
Key Features
VoiceInk offers a rich set of features designed for productivity and ease of use.
| Feature | Description |
|---|---|
| Accurate Transcription | Utilizes local AI models for transcription with high accuracy. |
| Privacy First | All processing is done 100% offline, ensuring data privacy. |
| Power Mode | Intelligently applies pre-configured settings based on the active application or URL. |
| Context Aware | A smart AI that can understand screen content to adapt and improve transcription context. |
| Global Shortcuts | Configurable keyboard shortcuts for quick recording and push-to-talk. |
| Personal Dictionary | Allows training the AI on custom words, industry terms, and smart text replacements. |
| Smart Modes | Provides pre-defined AI-powered modes for different writing styles (e.g., Chat, Email). |
| AI Assistant | A built-in voice assistant for conversational tasks, similar to ChatGPT. |
Sources: README.md:27-41
Architecture Overview
VoiceInk is a SwiftUI application with a modular architecture built around several key services that are initialized at application launch. The main entry point is the VoiceInkApp struct, which sets up the application's environment and state management.
Sources: VoiceInk/VoiceInk.swift:11-19
Application Initialization
At startup, VoiceInkApp initializes and injects several core services as environment objects. This includes managing the transcription engine (WhisperState), global hotkeys (HotkeyManager), application updates (UpdaterViewModel), and AI-powered text enhancements (AIEnhancementService). The application also sets up a SwiftData model container for persisting transcriptions.
The following diagram illustrates the initialization flow and the main components of the application.
This diagram shows that upon launch, VoiceInkApp initializes all necessary services and then routes the user to either the OnboardingView or the main ContentView based on their onboarding status.
Sources: VoiceInk/VoiceInk.swift:11-82
Core Technologies & Dependencies
The project is built on a foundation of powerful open-source technologies.
| Technology / Dependency | Purpose | Source |
|---|---|---|
| whisper.cpp | High-performance inference of OpenAI's Whisper model for local transcription. | README.md:105, BUILDING.md:10 |
| FluidAudio | Used for the Parakeet model implementation. | README.md:106 |
| Sparkle | Handles automatic application updates. | README.md:109, VoiceInk/VoiceInk.swift:195-220 |
| KeyboardShortcuts | Provides user-customizable global keyboard shortcuts. | README.md:110, VoiceInk/Views/Settings/SettingsView.swift:23-74 |
| LaunchAtLogin | Manages the "launch at login" functionality. | README.md:111, VoiceInk/Views/Settings/SettingsView.swift:239 |
| Zip | Used for file compression and decompression, particularly for CoreML models. | README.md:112, VoiceInk/Whisper/WhisperState+LocalModelManager.swift:203 |
| SelectedTextKit | A library for getting the currently selected text on macOS. | README.md:113 |
Sources: README.md:104-113, BUILDING.md:10-14, VoiceInk/VoiceInk.swift:195-220, VoiceInk/Views/Settings/SettingsView.swift, VoiceInk/Whisper/WhisperState+LocalModelManager.swift:203
Building from Source
Developers can build VoiceInk from the source code. The process involves two main stages: building the whisper.cpp framework and then building the main VoiceInk application.
Prerequisites
- macOS 14.0 or later
- Latest version of Xcode
Sources: BUILDING.md:5-8
Build Process
The following flowchart outlines the steps required to build the application.
For detailed commands and troubleshooting, refer to the BUILDING.md file.
Sources: BUILDING.md:10-25
Power Mode
Power Mode is a key feature that allows users to create context-aware configurations that are automatically applied based on the active application or website. This enables highly customized workflows tailored to specific tasks.
Sources: README.md:31-32, VoiceInk/PowerMode/PowerModeView.swift:34-42
Configuration
Each Power Mode can be configured with a unique set of parameters, overriding the global default settings.
A user can define:
- Triggers: Specific applications or website URLs that will activate the mode.
- Transcription Model: A specific local or cloud-based model for transcription.
- Language: The language for transcription, if the model is multilingual.
- AI Enhancement: Whether to enable AI post-processing and which AI provider, model, and prompt to use.
- Context Awareness: Whether to use screen content to improve transcription accuracy.
- Auto Send: Automatically press "Enter" after pasting the transcribed text.
The following diagram shows the logic for how Power Mode is applied.
Updates and Announcements
VoiceInk uses the Sparkle framework to manage application updates. It can be configured to check for updates automatically or manually. The update history and release notes are defined in appcast.xml.
The application also features an announcement system that fetches messages from a remote announcements.json file to inform users about important news, such as new features or the launch of the iOS app. This feature can be toggled in the settings.
Sources: VoiceInk/VoiceInk.swift:21-22, 91-93, 195-220, appcast.xml, announcements.json
Contributing
Contributions to VoiceInk are welcome, but they are subject to maintainer approval to ensure alignment with the project's vision and quality standards.
Key guidelines for contributors:
- Discuss First: Before starting significant work or implementing major features, open an issue to discuss the proposed changes.
- Get Approval: Wait for feedback and approval from maintainers before beginning implementation.
- Follow the Code of Conduct: All participants must abide by the project's Code of Conduct.
For detailed instructions on the development process, style guidelines, and submitting pull requests, see the Contributing Guidelines.
Sources: CONTRIBUTING.md:5-23, 36-37