Repository navigation
Yap 1.2.0
Yap 1.2.0
Changes since 1.1.0. 中文在下面。
Yap is an open-source (GPL-3.0) dictation app for macOS, forked from VoiceInk. Hold a shortcut, talk in English, Chinese or both in one sentence, and let go: Yap transcribes, cleans up, and pastes. Run it on a local model, with your own provider key, or through Yap Cloud.
Mixed Chinese and English
- Whisper now decodes each language stretch of a recording in its own language. Before, a recording that started in English could come out with its Chinese half translated into English.
- Recordings longer than 30 seconds are decoded in windows cut at pauses, so sentences no longer go missing from long dictations.
- Recording at 44.1 or 48 kHz is resampled with a proper filter, so hiss and fan or keyboard noise no longer fold into the speech. Transcripts of sibilant-heavy speech and noisy rooms are cleaner.
- The Local option in onboarding now downloads Whisper Large v3 Turbo (Quantized), 547 MB, instead of Parakeet V3, which has no Chinese. It runs fully offline: a dictation with a local model and cleanup off makes no network connection.
docs/local-models.mdhas the numbers for every local model and which to pick on an 8 GB Mac. setup/has benchmark scripts and 11 code-switched test clips, so you can compare models on your own Mac.
Three ways to run it
- Onboarding lists them side by side: a local model on this Mac, your own OpenRouter or other provider key, or Yap Cloud if you'd rather not get a key. You can change it later under Models, per mode if you like.
- Your first dictation happens on the third screen. Onboarding is 6 screens instead of 9 (7 if you have more than one microphone).
- A shortcut (Right Option) is set for you, and you can change it on the practice screen. Only one microphone? That screen is skipped. Onboarding continues by itself once permissions are granted, and practice steps after the first can be skipped.
- "Set It Up Later" leaves you with a working mode and shortcut instead of a hotkey that does nothing.
Settings in a file, synced across Macs
~/.config/yap/config.jsonnow covers modes, prompts, dictionary, shortcuts, general settings, custom models and custom enhancement providers. Shortcuts are written in a readable form, like"cmd+shift+space".- Settings > Config & Sync can write your current settings back to the file.
- Signed in to Yap Cloud, turn on Sync via Yap Cloud to keep the same config on every Mac. Changes from different Macs are merged; entries you delete stay deleted. API keys are never uploaded.
- Setting up a new Mac? The first onboarding screen can sign in and restore your settings from Yap Cloud.
- Version History lists earlier synced versions of your config and can restore one.
Dictation fixes
- Empty recordings and taps shorter than 0.3 seconds stop before anything is sent, instead of failing with a Retry that can't work.
- Long dictations are no longer cut off mid-sentence by the cleanup model (Groq, Cerebras, OpenAI, Mistral, custom providers). If the output still hits its limit, Yap pastes the raw transcript with a warning instead of half a cleanup. gpt-5 and Azure deployments that reject the temperature setting work again.
- A rewrite mode with text selected cleans up short instructions again instead of pasting your spoken words over the selection.
- Dictionary replacements can insert a line break (
\n);$and\in a replacement are kept as typed. - Two dictations in a row into Screen Sharing or a VM paste the right text.
- The microphone keeps working after another app changes its sample rate (a DAW, switching AirPods).
- With "pause media while recording", media resumes reliably after a recording that was canceled right away.
Clearer errors
- A failed transcription shows why and offers Retry; the recording is kept.
- If Yap can't paste (Accessibility not allowed), the text stays on your clipboard and Yap tells you how to fix it.
- Missing microphone permission, a missing or unusable model, and a rejected API key are caught before recording starts, with a button to the right place.
- Failed model downloads, custom commands and sync show the reason and a way to retry.
Accessibility and polish
- VoiceOver labels for icon buttons, menus and switches; History, mode and prompt lists work with the keyboard; the info (i) buttons can be opened with the keyboard.
- Better contrast in light mode, a resizable main window with the window buttons in the sidebar, Settings… (⌘,) in the app menu, and an About section with version and Check for Updates.
- A new duck icon in the menu bar that follows light and dark mode, and a duck-yellow accent with consistent spacing and text sizes throughout the app.
- Yap has a website: https://yap.sma1lboy.me.
Yap Cloud (optional)
Yap Cloud is one of the providers, for people who'd rather not get an API key: it runs the same models as the "Your OpenRouter Key" setup, and you pay per use from a prepaid balance. Everything is on its page under Models › Cloud › Yap Cloud.
- Sign in with your email and a 6-digit code. New accounts get $1 of free credit, so you can start dictating before adding funds.
- Add funds ($5, $10, $20 or a custom amount up to $500). Checkout opens in your browser; the balance updates when you come back to Yap, and each top-up has a receipt link.
- The page shows your balance, what you spent this month and on which models, and how long the balance lasts at your current pace. Home and the menu bar only bring it up when you need to act: when the balance runs low or runs out.
- Set a monthly spending cap ($0 to $10,000). When you reach it, Yap Cloud stops charging until next month or until you raise it.
- See the Macs signed in to your account and sign out any of them remotely. If this Mac was signed out from elsewhere, Yap notices on its next request and asks you to sign in again.
- Export your whole Yap Cloud history (charges and top-ups, with receipt links) as a CSV file. If the Yap team adjusts your balance (for example a refund), Recent Activity shows the reason.
- If Yap Cloud can't be reached, Yap says so in one sentence and recovers on its own. A failed call is retried once, only when it can't have been billed.
- Cleanup through Yap Cloud is faster: reasoning is turned off and the fastest provider is picked, so cleaning up a 40-second dictation went from about 8 s to 0.6 s.
- You can delete your Yap Cloud account from its page; you type your email to confirm, and any remaining balance is not refunded.
- Terms and privacy policy: https://cloud.yap.sma1lboy.me.
Cleanup
- Removed what was left of upstream VoiceInk: licensing and trial screens, the announcements fetcher, the change log sheet, and VoiceInk names in the UI. Custom command scripts get
YAP_*environment variables;VOICEINK_*still work. - Includes the latest upstream fix for case-only word replacements.
Yap 1.2.0(中文)
自 1.1.0 以来的更新。
Yap 是一个开源(GPL-3.0)的 macOS 听写 app,fork 自 VoiceInk。按住快捷键说话,英文、中文或者一句话里中英混着说都行,松开后 Yap 转写、润色并粘贴。可以用本地模型、自带服务商的 key,或者 Yap Cloud。
中英混说
- Whisper 现在按语言分段解码,每段用它自己的语言。以前一段以英文开头的录音,后面的中文可能被翻译成英文输出。
- 超过 30 秒的录音按停顿切成小段解码,长听写不会再丢句子。
- 44.1 或 48 kHz 的录音在降采样时加了滤波,齿音、风扇和键盘噪声不会再混进语音频段,嘈杂环境和齿音多的话转写更干净。
- 引导流程里的「本地」选项改为下载 Whisper Large v3 Turbo(量化版,547 MB),不再是不支持中文的 Parakeet V3。它可以完全离线运行:用本地模型、关闭润色时,一次听写不会发起任何网络连接。各个本地模型的测试数据、以及 8 GB 内存的 Mac 该选哪个,见
docs/local-models.md。 setup/里有测试脚本和 11 段中英混说的测试音频,可以在自己的 Mac 上比较模型。
三种用法
- 引导流程把三种方式并列:在这台 Mac 上跑本地模型、用自己的 OpenRouter 或其他服务商的 key,或者不想申请 key 时用 Yap Cloud。之后可以在「模型」里更改,也可以每个模式分别设置。
- 第一次听写在第 3 屏。引导流程从 9 屏缩短到 6 屏(有多个麦克风时是 7 屏)。
- 快捷键默认设为右 Option,可以在练习页更改。只有一个麦克风时跳过选择麦克风那一屏。授予权限后自动进入下一步,第一个之后的练习步骤可以跳过。
- 选「稍后设置」也会有可用的模式和快捷键,不会出现按了快捷键没反应的情况。
用配置文件管理设置,并在多台 Mac 间同步
~/.config/yap/config.json现在涵盖模式、提示词、词典、快捷键、通用设置、自定义模型和自定义润色服务商。快捷键用易读的写法,例如"cmd+shift+space"。- 「设置 > 配置与同步」可以把当前设置写回配置文件。
- 登录 Yap Cloud 后打开「通过 Yap Cloud 同步」,每台 Mac 都使用同一份配置。不同 Mac 上的改动会自动合并,删掉的条目不会再回来。API key 永远不会上传。
- 在新 Mac 上?引导流程的第一屏就可以登录 Yap Cloud 并恢复你的设置。
- 「版本历史」列出同步过的配置的旧版本,可以恢复其中任意一个。
听写修复
- 空录音和短于 0.3 秒的误触会在发送前就停下,不再显示一个点了也没用的「重试」。
- 长听写不会再被润色模型截断在半句(Groq、Cerebras、OpenAI、Mistral 和自定义服务商)。如果输出仍然达到上限,Yap 会粘贴原始转写并提示你,而不是粘贴润色了一半的文字。不接受 temperature 参数的 gpt-5 和 Azure 部署也能正常润色了。
- 选中文字时用改写类模式说一句简短的指令,会重新走润色,不会再把你说的原话直接覆盖选中的文字。
- 词典替换可以插入换行(
\n);替换内容里的$和\按原样保留。 - 连续两次往「屏幕共享」或虚拟机里听写,粘贴的是正确的文字。
- 其他 app 改了麦克风采样率之后(音频软件、切换 AirPods),麦克风仍然能正常录音。
- 开启「录音时暂停媒体」时,刚开始就取消的录音之后,媒体也能可靠地恢复播放。
错误提示更清楚
- 转写失败时说明原因并提供「重试」,录音会保留。
- 无法粘贴(没有辅助功能权限)时,文字会留在剪贴板里,并告诉你怎么解决。
- 麦克风权限缺失、模型缺失或不可用、API key 被拒绝,会在开始录音前就发现,并提供直达相应页面的按钮。
- 模型下载失败、自定义命令失败和同步失败都会说明原因,并提供重试的入口。
可访问性与细节
- 图标按钮、菜单和开关都有 VoiceOver 标签;历史记录、模式和提示词列表可以用键盘操作;信息(i)按钮可以用键盘打开。
- 浅色模式下对比度更好;主窗口可以调整大小,窗口按钮移到了侧边栏里;应用菜单里有「设置…」(⌘,);设置里新增「关于」,显示版本号和「检查更新」。
- 菜单栏换成了新的小鸭子图标,会跟随浅色/深色模式;整个应用换上鸭子黄的主色,间距和字号也统一了。
- Yap 有了官网:https://yap.sma1lboy.me。
Yap Cloud(可选)
Yap Cloud 是服务商之一,给不想自己申请 API key 的人用:它跑的模型和「自带 OpenRouter Key」一样,按量付费,从预充值的余额里扣。所有相关内容都在「模型 › 云端 › Yap Cloud」页面。
- 用邮箱和 6 位验证码登录。新账户赠送 $1 额度,充值之前就能开始听写。
- 充值($5、$10、$20,或自定义金额,最高 $500)。付款在浏览器里完成,回到 Yap 余额会自动更新,每笔充值都有收据链接。
- 页面上显示余额、本月花费及主要模型,以及按当前用量余额还能用多久。首页和菜单栏只在需要你处理时才提到余额:余额不足或用完的时候。
- 可以设置每月消费上限($0 到 $10,000)。达到上限后,Yap Cloud 当月不再扣费,直到下个月或你调高上限。
- 可以查看已登录账户的所有 Mac,并远程让其中任意一台退出登录。如果这台 Mac 在别处被退出登录,Yap 会在下一次请求时发现,并请你重新登录。
- 可以把全部 Yap Cloud 记录(扣费和充值,含收据链接)导出为 CSV 文件。Yap 团队调整你的余额时(例如退款),「最近记录」里会写明原因。
- Yap Cloud 连不上时,Yap 会用一句话说明,并自动恢复。失败的请求只在确定没有扣费时自动重试一次。
- 通过 Yap Cloud 润色更快了:关闭了推理,并选择最快的服务商,润色一段 40 秒的听写从约 8 秒缩短到 0.6 秒。
- 可以在 Yap Cloud 页面删除账户:需要输入邮箱确认,剩余余额不予退还。
- 服务条款和隐私政策:https://cloud.yap.sma1lboy.me。
清理
- 去掉了上游 VoiceInk 的残留:授权和试用界面、公告拉取、更新日志弹窗,以及界面里的 VoiceInk 名称。自定义命令脚本可以使用
YAP_*环境变量,VOICEINK_*仍然可用。 - 包含上游最新的修复:仅大小写不同的词语替换不再被误判为循环。
Self-signed (not notarized) build of Yap, a fork of VoiceInk (GPL-3.0). Install with Homebrew (brew install --cask) or setup/install.sh; existing installs update in-app via Sparkle.