Dictation and voice in Xcode
Apple's answer for code by voice is Voice Control, which learned Swift in the Xcode 26 cycle. For prompts and comments, a plain dictation key is simpler.
Voice options in Xcode
| Name | macOS Voice Control | macOS Dictation | |
|---|---|---|---|
| Types into the app | Yes, Swift-aware | Yes, in any text field | Yes, wherever the cursor is |
| Where speech is turned into text | Not stated | On the Mac or on Apple's servers, depending on the language | On your Mac; works offline |
| Price | FreeFree, built in | FreeFree, built in | FreePaid once2,000 words a week free, Pro $4.99 once |
| Languages | Not stated | Many, not every language or region | About 99, mixed in one sentence |
Voice Control and Swift
Voice Control is the Mac's full hands-free system: commands, number overlays, dictation. According to the Xcode 26 release notes, it gained code dictation in Swift that understands syntax and formats it. If you need to write code hands-free, that's the tool Apple built for it.
It's a mode for the whole Mac, though. While it's on, normal Dictation is off, and it listens for commands rather than waiting for a key.
Speakey in Xcode
- Click into the coding assistant's prompt, a comment line or the commit message sheet.
- Hold Right Option, say what you want, release.
- Speakey types words exactly as heard, so it's for prose. Leave code syntax to the keyboard or Voice Control.
Tips for developers
- Xcode 26 lets you use ChatGPT or Claude in its coding assistant. Spoken prompts fit there well: describe the bug, the expected behaviour, the view.
- Type names like `ContentView` or `URLSession` into Vocabulary so prompts spell them as code does.
- While Voice Control is on it hears everything you say, including what you meant for Speakey. Turn it off before going back to hold-to-talk.
Xcode and your data
Speakey's speech-to-text runs on the Mac. A prompt you then send to ChatGPT or Claude in Xcode follows that provider's terms, like a typed one.
Questions
Can I dictate code in Xcode?
Apple says Voice Control dictates Swift with syntax-aware recognition in the Xcode 26 cycle. Standard Dictation and apps like Speakey type plain words.
Does Xcode have voice input for its AI assistant?
Xcode doesn't list one. Dictate the prompt with macOS Dictation or Speakey.
Sources
Facts about other apps come from their own pages, checked when this page was updated. Prices and plans change, so check before you buy.