VoicePi is a macOS 14+ menu-bar voice input app built with Swift Package Manager.
It lets you press a keyboard trigger to start recording speech, transcribe audio with either Apple Speech or a remote ASR provider (OpenAI-compatible, Aliyun ASR, or Volcengine ASR), optionally refine the transcript with an OpenAI-compatible LLM, and then paste the final text into the currently focused input field when you press the trigger again.
VoicePi is hosted on GitHub. See the repository for source code, issue tracking, and release packaging updates:
VoicePi is released under the MIT License.
- Menu-bar only app (
LSUIElement) - Apple Speech local transcription support
- Remote large-model ASR support (OpenAI-compatible, Aliyun ASR, and Volcengine ASR)
- Real-time floating capsule overlay with live waveform
- Clipboard-based paste injection with automatic clipboard restore
- Temporary switch from CJK input methods to ASCII before paste, then restore
- Configurable recognition language
- Configurable ASR backend and remote ASR credentials
- Optional LLM refinement for conservative ASR correction
- SwiftPM build
- Makefile for build, run, install, and clean
- Signed
.appbundle output via ad-hoc signing by default
- macOS 14 or newer
- Xcode Command Line Tools or full Xcode
- Microphone permission
- Speech Recognition permission
- Accessibility permission for paste injection and advanced shortcut suppression
- Input Monitoring permission only for advanced global shortcuts
Package.swift— SwiftPM manifestMakefile— build, verify, package, run, install, and clean helpers.github/workflows/ci.yml— macOS test workflow for pushes and pull requests.github/workflows/release.yml— tag-driven GitHub Release workflow; the Homebrew cask is maintained in pi-dal/homebrew-tapScripts/test.sh— repository-level test entrypoint for Swift, shell, andsite/workspace checksScripts/verify.sh— development verification workflow that builds the debug app bundleScripts/package.sh— release packaging workflow that verifies first, then exports the release app bundleScripts/prepare_release.sh— release helper that packages the zip asset, computes SHA256, and refreshes the cask metadataScripts/bundle_app.sh— legacy alias that forwards to the packaging workflowdocs/changelogs/— per-release changelog files consumed by the release workflowdocs/changelogs/TEMPLATE.md— release changelog templateCHANGELOG.md— changelog index pointing to versioned release notesCONTRIBUTING.md— contribution and pull request expectationsCODE_OF_CONDUCT.md— community behavior guidelinesSECURITY.md— vulnerability reporting policyLICENSE— MIT open-source license textSources/VoicePi— app sourcedist/debug/VoicePi.app— development app bundle generated by the verification flowdist/release/VoicePi.app— exported app bundle generated by the packaging flow
The project now uses a two-step workflow:
- Verify — for normal development testing
- Package — for release export after verification succeeds
Use this during everyday development:
./Scripts/verify.sh
or:
make verify
This builds and bundles the development app at:
dist/debug/VoicePi.app
Use this when the verification build is confirmed to be good:
./Scripts/package.sh
or:
make package
The packaging workflow runs verification first, then produces the exported app bundle at:
dist/release/VoicePi.app
The release b 8000 undle is ad-hoc signed by default.
If you still use the older packaging script, it now forwards to the packaging workflow:
./Scripts/bundle_app.sh
make run
This opens the verification bundle:
dist/debug/VoicePi.app
swift run
Note that the full app experience is best when launched as the generated .app bundle, since permissions and app-bundle behavior are more consistent there.
Install into /Applications:
make install
This runs the packaging flow if needed, then copies:
dist/release/VoicePi.app
to:
/Applications/VoicePi.app
VoicePi can be installed through the centralized pi-dal Homebrew tap:
brew install --cask pi-dal/tap/voicepiAfter a new release is published, update its cask and release-asset checksum in the tap.
VoicePi supports two practical distribution paths.
Use this path when you want to share builds quickly with a small number of testers:
./Scripts/package_zip.shThe script runs the normal packaging flow first, then creates a versioned release archive:
dist/release/VoicePi-<version>.zip
If you prefer Make targets, this repository also exposes:
make zipmake zip creates dist/release/VoicePi-macOS.zip for quick internal sharing.
For GitHub Releases, prefer the versioned archive (VoicePi-<version>.zip) because that is the primary AppUpdater asset naming format.
Share the archive with testers. The default release bundle is ad-hoc signed, so macOS Gatekeeper may block it on other machines. These archives are for internal testing only, not for normal end-user distribution.
Testers can usually open the app by moving it into /Applications, removing the quarantine attribute, and launching it from Terminal:
xattr -dr com.apple.quarantine /Applications/VoicePi.app
open /Applications/VoicePi.appIf Finder still blocks the app on that machine, launch the executable directly:
xattr -dr com.apple.quarantine /Applications/VoicePi.app
/Applications/VoicePi.app/Contents/MacOS/VoicePiThis repository now includes a Vite-based GitHub Pages site workspace in site/.
Local commands:
cd site
pnpm install
pnpm dev
pnpm test -- --run
pnpm typecheck
pnpm buildThe website consumes release content from docs/changelogs/ at build time, so the release notes remain the single source of truth for both GitHub Releases and the Pages timeline.
VoicePi is a menu-bar app (LSUIElement), so a successful launch does not create a Dock icon or a normal app window. Look for the icon in the macOS menu bar.
Removing the quarantine attribute is not a substitute for proper distribution signing. Unsigned GitHub Release assets and local ad-hoc builds can still be rejected by Gatekeeper on some machines. If that happens, testers can also try the system override flow in System Settings > Privacy & Security after the first blocked launch. For a normal download-and-open experience, ship a Developer ID-signed and notarized build.
Use this path when you want normal macOS installation behavior for external users.
- Sign the app with a valid Apple Developer
Developer ID Applicationcertificate. - Submit the signed app to Apple notarization.
- Staple the notarization ticket to the app.
- Package the notarized app as a
.zipor.dmgfor distribution.
This repository already supports passing a signing identity into the packaging flow:
CODESIGN_IDENTITY="Developer ID Application: Your Name (TEAMID)" ./Scripts/package.shSigning alone is not enough for a smooth external install experience. If you distribute VoicePi outside your own machine, you should notarize the app before publishing it.
The repository ships with two GitHub Actions workflows:
CIruns./Scripts/test.shon macOS for pull requests.Releaseruns when you push a tag that starts withv, packagesdist/release/VoicePi-<version>.zip, and creates or updates the matching GitHub Release fromdocs/changelogs/v<version>.md.
VoicePi follows Epoch Semantic Versioning, using the normal SemVer MAJOR position as epoch * 1000 + technical_major. In practice:
PATCHis for backwards-compatible fixes.MINORis for backwards-compatible features.MAJORis for smaller incompatible changes that should still be progressive to adopt.EPOCHis reserved for genuinely new eras of the product and appears as jumps likev1000.0.0.
That means the first public release is v1.0.0, and later progressive breaking changes can move to v2.0.0, v3.0.0, and so on without implying a marketing reset.
Create a release like this:
git tag v1.0.0
git push origin v1.0.0The tag should follow v<semver>, for example v1.2.3. The Homebrew cask in pi-dal/homebrew-tap must be updated after the release asset is published.
Every release must include a changelog file in the repository:
docs/changelogs/v<version>.md
Example for tag v1.4.0:
docs/changelogs/v1.4.0.md
Create it from the template:
cp docs/changelogs/TEMPLATE.md docs/changelogs/v1.4.0.mdThen fill the file with release-specific content.
Required changelog structure:
## Highlights
## Added
## Changed
## Fixed
## Breaking ChangesRules:
- Write user-facing changes only; keep entries concise.
- Use
- Nonefor empty sections to keep the format stable. - Commit the changelog file before creating/pushing the tag.
- The release workflow fails if
docs/changelogs/v<version>.mddoes not exist.
make clean
VoicePi needs four macOS permissions for the full shortcut-to-paste flow:
- Microphone
- Speech Recognition
- Accessibility
- Input Monitoring
- Microphone: records your voice
- Speech Recognition: required when using the local Apple Speech backend
- Accessibility: required to inject the final paste, and also required if you use advanced shortcuts that need suppression
- Input Monitoring: required only for advanced global shortcuts such as modifier-only,
fn-based, or multi-key chords
VoicePi also supports a configurable cancel shortcut during an active capture or processing run:
- the default Cancel Shortcut is
Control + ., which uses the standard registered-hotkey path and does not need Input Monitoring - if you change Cancel Shortcut to bare
Escin Settings → Home, VoicePi treats it as an advanced global key and needs both Input Monitoring for listening and Accessibility for suppression
If you switch to a remote ASR backend, the app still needs Microphone, but local Speech Recognition may no longer be the primary transcription path.
On first run, VoicePi refreshes permission state without forcing every prompt up front. VoicePi requests permissions when you use the feature that needs them. If you already denied one of them in an earlier run, macOS may not show the prompt again and you will need to re-enable it in System Settings.
You can also open the in-app Settings → Permissions section, which provides direct buttons for:
- Open Microphone Settings
- Open Speech Recognition Settings
- Open Accessibility Settings
- Open Input Monitoring Settings
- Refresh Permission Status
If needed, you can still open the pages manually:
- System Settings → Privacy & Security → Microphone
- System Settings → Privacy & Security → Speech Recognition
- System Settings → Privacy & Security → Accessibility
- System Settings → Privacy & Security → Input Monitoring
Make sure VoicePi.app is enabled in each relevant section.
- Launch
VoicePi.app - Grant the requested permissions for the features you use. Accessibility is needed for paste injection, while Input Monitoring is only needed if you choose an advanced shortcut.
- A microphone icon appears in the menu bar
- Press the configured hotkey trigger to start recording
- Speak
- Press the trigger again to stop recording
- VoicePi injects the final transcribed text into the currently focused input field
While a capture session is active, you can also press the configured Cancel Shortcut to cancel the current run instead of finishing it. By default this is Control + .. During startup or active recording, the cancel shortcut aborts the session immediately. During post-stop transcription or refinement, it cancels the in-flight processing task and hides the overlay. If you rebind Cancel Shortcut to Esc, VoicePi will remind you in Settings that bare Esc needs both Accessibility and Input Monitoring.
While recording, a floating capsule appears centered near the bottom of the screen and shows:
- live waveform bars driven by real audio RMS
- live streaming transcript text
If LLM refinement is enabled and configured, the capsule shows a refining state before text is pasted.
The inte 8BD0 nded trigger behavior is:
- press the configured activation shortcut to start recording
- press the same activation shortcut again to inject text
- press the configured Cancel Shortcut while VoicePi is actively starting, recording, or processing to cancel the current run
- the default Cancel Shortcut is Control + .
- if you change Cancel Shortcut to Esc, grant both Accessibility and Input Monitoring so VoicePi can intercept and suppress the bare
Esckey
VoicePi keeps the cancel shortcut disabled while idle.
The Home section in Settings also summarizes this trigger flow and explains the basic VoicePi workflow for new users.
If you are modifying the app behavior, make sure the key monitor logic and the menu/help text stay aligned with the current configured trigger.
VoicePi supports these ASR modes:
- Apple Speech — local/system speech recognition
- Remote OpenAI-Compatible ASR — OpenAI-style
/v1/audio/transcriptions - Aliyun ASR — Aliyun DashScope realtime WebSocket ASR (
/api-ws/v1/inference), withcompatible-modebase URL also accepted - Volcengine ASR — Volcengine realtime WebSocket ASR (
/api/v3/sauc/bigmodel)
Configure the backend in Settings → ASR:
- Backend chooses between Apple Speech and the remote large-model providers
- API Base URL, API Key, and Model are required for every remote ASR backend
- Volcengine AppID is additionally required when backend = Volcengine ASR
- Prompt is optional add-on text. VoicePi always applies built-in ASR bias rules first, then appends your custom hints so you can extend the defaults instead of replacing them
- Test Connection sends a lightweight endpoint probe before you save
When Remote ASR is selected, VoicePi captures audio locally while you hold the shortcut. OpenAI-compatible backend uploads the recorded file after release, while Aliyun and Volcengine stream 16 kHz PCM over WebSocket during recording and resolve the final transcript on release.
If you feel the built-in local recognizer is not accurate enough, switch to Remote ASR in the app settings.
- Use Apple Speech if you want a fully local built-in path and simple setup
- Use Remote ASR if you want stronger recognition quality, especially for mixed Chinese-English dictation and technical terms
VoicePi now has a dedicated ASR section in the unified settings window.
From the menu bar:
- open Settings…
- open the ASR section
There you can configure:
- ASR Backend
Apple SpeechRemote OpenAI-Compatible ASRAliyun ASRVolcengine ASR
- Recognition Language
- API Base URL for remote ASR
- API Key for remote ASR
- Model for remote ASR
- Volcengine AppID for Volcengine ASR
- Test and Save actions for remote ASR configuration
VoicePi supports these recognition languages:
- Simplified Chinese (
zh-CN) — default - Traditional Chinese (
zh-TW) - English (
en-US) - Japanese (
ja-JP) - Korean (
ko-KR)
You can change the recognition language from the ASR settings section and, depending on the current app build, from the menu bar language submenu.
The selected language is stored in ~/.config/voicepi/config.toml under [app].language.
VoicePi now uses a file-first configuration model rooted at ~/.config/voicepi.
The Settings UI edits the same files you can edit manually, and VoicePi reloads
those files while the app is running.
The default layout is:
~/.config/voicepi/
├── config.toml
├── user-prompt.txt
├── dictionary.json
├── dictionary-suggestions.json
├── processors.json
├── prompt-workspace.json
├── prompts/
│ ├── user.release-notes.json
│ ├── user.email-writer.json
│ └── ...
└── history/
├── 2026-04.jsonl
├── 2026-05.jsonl
└── ...
config.toml is the main source of truth for app behavior, including language,
ASR backend, remote ASR credentials, LLM credentials, hotkeys, theme, and
history policy. Structured files such as dictionary.json,
dictionary-suggestions.json, processors.json, and prompt-workspace.json
hold the larger object graphs that are awkward to manage inline in TOML.
The prompt body files are split out intentionally:
user-prompt.txtstores the currently resolved refinement prompt bodyprompt-workspace.jsonstores prompt workspace state such as the active selectionprompts/*.jsonstores one user-defined prompt preset per file, which is easier for agents and git diffs to edit safely
History is stored as monthly JSONL shards under history/. Each line is one
saved session record, including the final text by default, so agent tooling can
analyze usage without scraping app internals. The default history directory and
storage behavior live in config.toml under [history].
Most path-based storage locations can be overridden in config.toml under
[paths], and VoicePi resolves relative paths against ~/.config/voicepi.
Absolute paths are also supported if you want to move specific files into a
synced directory or a repo.
On first launch after upgrading to the file-first build, VoicePi migrates
existing UserDefaults settings and legacy Application Support JSON files
into this config root automatically. After migration, the file tree above
becomes the primary persistent state.
Remote ASR is designed for cases where Apple Speech is not accurate enough.
It supports OpenAI-compatible transcription APIs and provider-specific Aliyun/Volcengine ASR endpoint routing for stronger large-model speech recognition.
- Hold the configured shortcut
- VoicePi records audio locally
- OpenAI-compatible sends the recorded file on release; Aliyun/Volcengine stream realtime audio frames during recording
- VoicePi receives transcript updates (Aliyun/Volcengine partials are merged into a running transcript so the overlay behaves closer to continuous streaming)
- On release, VoicePi resolves and injects only the final transcript
- If LLM refinement is enabled, the final transcript can be conservatively cleaned up before paste
In Settings → ASR, provide:
- API Base URL
- API Key
- Model
- Volcengine AppID (required only when backend = Volcengine ASR)
Use the backend that matches your provider and set the matching Base URL:
- OpenAI-compatible:
.../v1or.../v1/audio/transcriptions - Aliyun ASR:
.../compatible-mode/v1(recommended),.../api/v1/services/audio/asr/transcription, orwss://.../api-ws/v1/inference - VoicePi accepts Aliyun HTTP/WebSocket forms (including
wss://.../compatible-mode/v1) and normalizes them towss://.../api-ws/v1/inferencefor realtime streaming. - Aliyun model example:
fun-asr-realtime - Volcengine ASR:
wss://.../api/v3/sauc/bigmodel(recommended) orhttps://.../api/v3/sauc/bigmodel - VoicePi also accepts Volcengine legacy forms such as
.../api/v3and.../api/v3/audio/transcriptions, then normalizes them to realtime.../api/v3/sauc/bigmodel.
| Provider | ASR Backend | API Base URL | API Key | Model | Volcengine AppID |
|---|---|---|---|---|---|
| Aliyun DashScope | Aliyun ASR |
https://dashscope.aliyuncs.com/compatible-mode/v1 (or wss://dashscope.aliyuncs.com/api-ws/v1/inference) |
sk-... |
fun-asr-realtime |
Leave empty |
| Volcengine SAUC | Volcengine ASR |
wss://openspeech.bytedance.com/api/v3/sauc/bigmodel (or https://openspeech.bytedance.com/api/v3/sauc/bigmodel) |
<Volcengine Access Key> |
bigmodel |
<Volcengine AppID> |
- Remote ASR requires network access
- Remote ASR usually provides better recognition quality than local Apple Speech
- API keys are not hardcoded into the app
- If your provider requires a nonstandard base path, set the Base URL accordingly
VoicePi can optionally refine transcripts using an OpenAI-compatible API.
The refinement prompt is intentionally conservative:
- only fix obvious recognition mistakes
- preserve correct text exactly
- avoid rewriting or polishing
- support mixed Chinese-English correction
- fix obvious technical-term ASR errors such as:
配森→Python杰森→JSON
From the menu bar:
- open LLM Refinement
- enable refinement
- open Settings…
The settings window is organized into multiple sections:
- Home — product introduction, quick usage overview, and feature summary
- Permissions — direct permission status for Microphone, Speech Recognition, Accessibility, and Input Monitoring, plus buttons that jump to the relevant macOS settings pages and explain what each one controls
- Dictionary — term management, suggestion review, and quick add/export actions
- ASR — backend selection, recognition language, and remote ASR configuration
- LLM — API Base URL, API Key, Model, Test, and Save controls
Fill in:
- API Base URL
- API Key
- Model
Then use:
- Test — verify the API works
- Save — persist the configuration
The API key field can be fully cleared.
- The API must expose an OpenAI-compatible chat completions endpoint
- If your provider uses a custom base path, set the base URL accordingly
- The app does not hardcode any API key
In Settings → Dictionary:
- Add accepts multiple lines in one dialog.
- You can set aliases inline per line with this format:
Canonical TermCanonical Term | alias one, alias two
- Edit is scoped to the selected row only and exposes:
- one canonical field
- one comma-separated aliases field
- After VoicePi injects text into an editable field, it watches that field briefly and can queue multiple stabilized term corrections from the same editing session.
- Export Text and Export JSON copy the current dictionary snapshot.
The prompt workspace only affects Refinement mode. It does not replace VoicePi's built-in ASR guardrails, and it does not replace the code-controlled language instructions that VoicePi adds when you choose an output language.
The settings UI exposes these prompt controls:
- Active Prompt chooses the manual prompt selection. VoicePi uses this prompt directly whenever
Strict Modeis off. - Strict Mode controls runtime routing. When on, matching app bindings override the current Active Prompt; when off, VoicePi always uses the Active Prompt.
- Prompt Name is editable for user-created prompts.
- Prompt Body is the freeform middle section that gets inserted between VoicePi's fixed prefix and suffix instructions.
- App Bundle IDs lets a user prompt match specific macOS apps such as
com.tinyspeck.slackmacgap. App bundle IDs are globally unique across user prompts. If a save would conflict, VoicePi asks for confirmation before reassigning those app bindings. - Website Hosts lets a user prompt match supported browser tabs by host such as
mail.google.com,trello.com, or wildcard entries like*.notion.so. - New, Duplicate, and Delete let you create and manage custom prompts. Starter prompts are duplicated before editing so the shipped presets stay intact, and bindings live on the editable user copies.
VoicePi Default is always available as the built-in fallback prompt profile.
The Resolved Prompt preview shows the exact editable middle section that will be sent at runtime. VoicePi still wraps that body with fixed prefix and suffix instructions in code.
Bundled starter prompts live under Sources/VoicePi/PromptLibrary:
registry.jsonlists the shipped prompt assets.profiles/contains the starter prompt bodies such asmeeting_notes,json_output, andsupport_reply.
VoicePi loads these bundled starters as read-only presets. User-created prompts
and prompt workspace state are persisted under ~/.config/voicepi/ instead of
remaining embedded only in app-local preferences.
Before paste injection, VoicePi checks the current macOS input source.
If the current input method looks like a CJK input method, VoicePi temporarily switches to an ASCII-capable input source such as:
ABCUS
It then:
- saves the clipboard
- writes the final text to the clipboard
- simulates
Cmd+V - restores the clipboard
- restores the original input source
This prevents some CJK input methods from intercepting the paste action incorrectly.
The generated app bundle is signed by default with ad-hoc signing.
If you want to sign with a real certificate, you can override the signing identity when invoking make:
make release SIGN_IDENTITY="Developer ID Application: Your Name"
Check:
- microphone permission
- if using Apple Speech, speech recognition permission
- accessibility permission for paste injection, and for advanced shortcut suppression if you use an advanced shortcut
- input monitoring permission if your configured shortcut is an advanced shortcut
- selected language availability on the machine
- whether the configured shortcut is the one you are actually pressing
Check:
- accessibility permission
- whether the target app accepts paste
- whether the focused field is actually active
This usually means the advanced shortcut interception path is not active, Input Monitoring is blocking an advanced shortcut, or Accessibility is blocking advanced shortcut suppression.
Check:
- if your configured shortcut is advanced, Input Monitoring is enabled for
VoicePi.app - Accessibility is enabled for
VoicePi.appif you expect paste injection to work - if your configured shortcut is advanced, relaunch VoicePi after changing Input Monitoring if macOS did not apply it immediately
- the shortcut shown in Settings → Home matches the keys you are pressing
Check:
- VoicePi is actively starting, recording, or processing; idle state does not monitor the temporary cancel shortcut
- the shortcut shown in Settings → Home → Cancel Shortcut matches the keys you are pressing
- if the configured cancel shortcut is an advanced shortcut, Input Monitoring is enabled for
VoicePi.app - if the configured cancel shortcut is bare Esc, Accessibility is also enabled for
VoicePi.app - VoicePi was relaunched after changing either permission if macOS did not apply it immediately
If you do not want to depend on Esc permissions, keep Cancel Shortcut on the default Control + . or choose another standard modifier-plus-key shortcut.
Possible causes:
- microphone input level is too low
- the selected ASR backend is misconfigured
- the remote ASR API Base URL, API Key, or Model is incorrect
- the remote ASR provider returned an error
- Apple Speech is too weak for the spoken language/content in your environment
- speech recognition permission is missing
- the recognizer is unavailable for the selected locale
- the trigger was released too quickly
Check:
- API base URL
- API key
- model name
- endpoint compatibility with OpenAI chat completions format
- network access
This app is implemented with AppKit and system frameworks including:
AppKitApplicationServicesAVFoundationCarbonSpeech
The floating overlay uses:
NSPanelNSVisualEffectView- Core Animation-backed waveform bars
Build and run locally:
make debug
make run
# or
make release
Install system-wide:
make install
This project is licensed under the MIT License.