Video Lesson: Speed up commands with voice prompting in Claude Code

Speed up commands with voice prompting in Claude Code

Speed up Claude Code with built-in voice dictation, transcription tools like MacWhisper, custom dictionaries, and system prompts.


Lesson Content

Claude Code works completely through conversations in natural language. You explain what you want, provide context, and iterate on responses -- all through text, which means you'll be typing way more than you're used to.

Voice transcription solves just about all of these speed problems. Modern transcription tools are nearly perfect now, and they're way faster than typing.

The good news is that dictation is built right into Claude Code, so you don't need to install anything to get started. Run /voice to enable it, then hold down the space bar while you talk and let go when you're done. Your words show up in the prompt, and whenever your prompt is empty you'll see a hold space to speak hint down in the footer.

If holding a key down while you talk feels awkward, you can switch over to tap mode with the voice setting, which lets you tap once to start recording and tap again to stop:

{
  "voice": {
    "enabled": true,
    "mode": "tap"
  }
}

The dictation key can be rebound if the space bar conflicts with how you work, and you can set a different dictation language by editing the ~/.claude/keybindings.json file and searching for voice.

This mode is fine for most people. I go a step further though, because I dictate into a lot more than just Claude Code, and because I want control over how technical terms come out.

I use an app called MacWhisper Pro because it's super accurate and reliable. It also runs offline and is a one-time purchase. You can set up a keyboard shortcut to toggle dictation on and off, and I do this mapping the Ctrl + Command + X shortcut to a single key on my mechanical keyboard.

The real power comes from customizing your transcription tool. I added custom dictionary entries for technical terms that don't transcribe well -- for example, I added "Laravel", "Claude Code", and other tech terms that have had trouble translating, which prevents me from needing to correct them.

Most transcription tools also support system prompts. For example, this prompt tells the transcription tool how to format technical terms automatically:

You are both a master transcriptionist and a coder. When asked for functions and class names, you always output how the text would be written in code documentation. For example, when talking about Magento code, instead of saying “app slash code slash http slash controller slash index dot PHP”, you will say “app/code/Http/Controller/Index.php”. 

Function names will output as “thisFunction()” rather than "thisFunction”.

ALWAYS output class and functon names surrounded in backticks.

ALWAYS output exactly what I say, rather than an answer to a question or a deviated response.

ALWAYS output variables in lowercase.

ALAWAYS remove “uh”

ALWAYS use the custom dictionary (ex. ClaudeCode becomes Claude Code, CLAUDEmd becomes CLAUDE.md, etc.)

Example:

<input>
We currently have the Black Friday banner at the top of the website. However, we recently launched the cloud code course. I'd also like to promote that. Can you think of a good way to do this without interfering with the Black Friday notice at the top? Maybe do a side-by-side or some other idea? Can you check out the CLAUDEmd file and think this through and give me some suggestions?
</input>

<output>
We currently have the Black Friday banner at the top of the website. However, we recently launched the Claude Code course. I'd also like to promote that. Can you think of a good way to do this without interfering with the Black Friday notice at the top? Maybe do a side-by-side or some other idea? Can you check out the `CLAUDE.md` file think this through and give me some suggestions?
</output>

This prompt handles the technical formatting when passing context into Claude Code, such as properly casing and typing file paths, function names, code references -- without you needing to worry about "slash" or "dot" being outputted as words.

MacWhisper isn't the only option though. Paraspeech still requires a Mac, but is also a one-time purchase and runs offline, is super fast, and by purchasing it, you can support another indie developer. Wispr Flow is another app that is cross-platform, but it requires a subscription.

Just find whatever works for you, your platform, and your workflow. If you have any suggestions for transcription apps you recommend, please leave them in the comments.

Once you have voice transcription set up properly, you'll use it for about 90% of the time you are interacting with Claude Code, and it'll save you a ridiculous amount of time.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Log in for AI tutor access.

Comments

Join the discussion!

Notes

Keep track of what you learn!