---
name: talk-to-type
description: Build a macOS push-to-talk dictation app that inserts cleaned-up text at the cursor in any app. Use when the user asks for dictation, voice typing, speech-to-text at the cursor, or a Wispr Flow style tool.
title: talk-to-type
canonical_url: https://skilld.dev/gh/brettr7388/app-killers/talk-to-type
last_updated: 2026-10-11T18:01:12.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install brettr7388/app-killers/talk-to-type`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/talk-to-type`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/brettr7388/app-killers/talk-to-type) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/talk-to-type`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/talk-to-type --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/talk-to-type --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

> Replaces **Wispr Flow ($15/mo)**. Runs locally — no API key, no credits.

# Talk To Type — push-to-talk dictation anywhere

Build a macOS menu bar app: hold a key, talk, release, and cleaned-up text appears at
the cursor **in whatever app is frontmost**.

Swift + SwiftPM, no Xcode project needed — a `build.sh` that runs
`swift build -c release`, assembles a `.app` bundle and ad-hoc codesigns it.

## Behaviour

- **Hold Fn** to record via a global event tap. Release to insert. **Esc** cancels.
- Ignore an accidental tap under 0.4s with nothing said.
- **Fn + Space** for hands-free mode: keep talking without holding. Tap Fn to stop.
- **Hold Fn + Ctrl** for command mode: speak an instruction ("make this more concise",
  "turn this into bullet points"). If text is selected, replace it; otherwise insert.

## Speech

Use Apple's on-device **SFSpeechRecognizer**. Free, no API key, works offline, and
fast enough for push-to-talk. Feed the user's personal dictionary (names, brands,
jargon) in as contextual strings — it fixes most proper-noun errors.

## Cleanup

Polish the raw transcript with `claude -p` — the user's Claude subscription, **not**
an API key. Strip filler words, resolve self-corrections ("tuesday, wait no, friday"
→ "friday"), fix grammar, and match the tone of the target app (formal in Mail, casual
in Slack, code-aware in a terminal).

Ship a rule-based fallback for when `claude` isn't installed, so it degrades instead
of breaking.

## Inserting the text — do it exactly this way

```
1. save the user's current clipboard
2. put the transcript on the pasteboard
3. send a synthetic Cmd+V
4. RESTORE the saved clipboard
```

This is the only approach that works in every app. **Skipping step 4 silently eats
whatever the user had copied** — it's the single most common way this feature makes
people hate the app.

## UI

A floating pill at the bottom of the screen while recording, colour-coded by mode, so
it's obvious the mic is live. Keep a searchable history of the last ~200 dictations.

## Permissions

Microphone, Speech Recognition, and **Accessibility** (for the global hotkey event tap
and the paste). Prompt on first launch.

> **The trap:** every rebuild changes the ad-hoc signature and invalidates the old TCC
> grants. The Accessibility toggle shows ON but is dead. After each rebuild:
> ```bash
> tccutil reset Accessibility <bundle-id>
> tccutil reset Microphone <bundle-id>
> tccutil reset SpeechRecognition <bundle-id>
> ```

## Why this one isn't a localhost app

Typing into other applications requires a native global event tap and Accessibility
permission. A web page can't do it. This one is a real menu bar app.

## What you need to build it

**Not full Xcode.** This builds with SwiftPM (`swift build -c release`), which only
needs the **Command Line Tools**:

```bash
xcode-select --install     # ~1GB, and it opens a dialog you have to click Install on
```

Claude can run that command for you, but macOS shows a GUI prompt that a human has to
accept — it can't be fully automated. Once the tools are in, everything else is
scripted.
