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.

Dictation by appUpdated 2 min read

Voice options in Xcode

NamemacOS Voice ControlmacOS DictationSpeakey
Types into the appYes, Swift-awareYes, in any text fieldYes, wherever the cursor is
Where speech is turned into textNot statedOn the Mac or on Apple's servers, depending on the languageOn your Mac; works offline
PriceFreeFree, built inFreeFree, built inFreePaid once2,000 words a week free, Pro $4.99 once
LanguagesNot statedMany, not every language or regionAbout 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.

Mac only

Speakey is a Mac app.

It runs on Apple silicon with macOS 14 or later. Send the link to your email and open it on your Mac.

Download anyway