Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Code DictatorNew to Visual Studio Code? Get it now.
Code Dictator

Code Dictator

IrrationalWays

|
166 installs
| (0) | Free
| Sponsor
Voice dictation for Claude Code, Copilot, Cline, or any AI chat in VS Code — 90+ languages, powered by ElevenLabs. Press Alt+D, talk, paste.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Dictator

platform VS Marketplace Installs CI GitHub stars License

Stop typing prompts. Start speaking them.

You talk to AI all day. Claude, Copilot, Cline — they all understand natural language. So why are you still typing at 70 words per minute when you speak at 150?

Press Alt+D. Speak. Press Alt+D again. Paste. Done.

Code Dictator in action

Your words are transcribed in seconds, ready to paste into any AI chat, terminal, or editor. No browser extensions. Just your voice and your code.

Dictate in your language — not just English. With ElevenLabs, transcription is accurate across 90+ languages — European and others — so non-English speakers get clean results too, not a watered-down, English-first experience.


Get Started in 30 Seconds

  1. Install Code Dictator from the VS Code Marketplace
  2. Get a free API key from ElevenLabs — sign up, find Developers (bottom of the left panel) → API Keys → Create API Key
  3. Press Alt+D, speak your prompt, press Alt+D again, and paste into any AI chat

Your voice → clipboard → wherever you need it.

Requirements

Recording uses a small tool on your system. Install it once if you don't have one:

  • Linux: nothing to install — it uses parecord, pw-record or arecord, preinstalled on most desktop distros
  • macOS: brew install sox
  • Windows: winget install Gyan.FFmpeg

If the tool is missing, Code Dictator tells you what to install the first time you press Alt+D.


Why Voice Changes Everything

You spend hours a day writing prompts for AI coding assistants. That's not coding — that's copywriting. And you're doing it with a keyboard.

  • 2x faster input. A 30-second typed prompt takes 15 seconds to speak. Over a full day, that's 30-60 minutes back.
  • Code from anywhere. Wireless headphones on, walk to the kitchen, dictate your next prompt while the coffee brews. Your AI assistant doesn't care where you are.
  • Better prompts. When speaking is effortless, you give more context. More context means better AI output. Better output means fewer iterations.
  • Less fatigue. Save your hands for what matters — reviewing diffs, navigating code, running commands. Let your voice handle the rest.

Features

What you get
Push-to-talk Alt+D to start, Alt+D to stop. Or hold-to-talk mode.
Quick on long dictations Optional: long dictations are transcribed in parts while you speak, so the text is ready a second or two after you stop. Costs about 10–25% more.
Any AI assistant Claude, Copilot, Cline, terminal — paste anywhere
Speaks your language Accurate speech-to-text in 90+ languages with ElevenLabs — not just English. Auto-detected; switch with one click.
Code-aware mode Say "open paren" and get (. 50+ symbol mappings.
AI text cleanup Optional LLM pass removes filler words and fixes grammar
Usage at a glance With ElevenLabs, the status bar shows the credits left in your subscription and about how many hours of dictation they buy. With other providers, today's estimated speech-to-text cost.
Cross-platform macOS, Windows, Linux. Records with a system tool on each — see Requirements.
Privacy-first No telemetry. No data collection. API keys in your OS keychain.

Providers

ElevenLabs OpenAI Custom API
Models Scribe v2 GPT Transcribe Any Whisper-compatible
Accuracy Excellent Very good Model-dependent
Languages 90+ 57 Varies
Free tier Yes (4.5 hrs/month) No N/A
Latency ~1-2s ~1-3s Varies
Best for Most developers Existing OpenAI users Privacy / self-hosted

We recommend ElevenLabs — it's the most accurate, has a generous free tier, and just works. Its multilingual transcription is a standout: dictate in your own language and get clean, accurate text — not only in English.

Sign up for ElevenLabs — free tier, no credit card required

Referral link — supports Code Dictator's development at no cost to you.


Pricing

Code Dictator is free and open-source. You only pay for the speech-to-text API:

Provider Cost
ElevenLabs Free tier (4.5 hrs/month), then $0.22/hr
OpenAI See OpenAI pricing
Custom / Local Free

Most developers stay comfortably within the free tier.


Code-Aware Mode

When enabled (default), spoken programming terms become symbols:

Say Get
"open paren" (
"close bracket" ]
"arrow function" =>
"triple equals" ===
"new line" (line break)

50+ mappings. Say "const items equals open bracket close bracket" and get const items = [].


Keyboard Shortcuts

Action Shortcut
Toggle recording Alt+D
Cancel recording Escape (while recording)

Escape discards the dictation and inserts nothing. With recording.transcribeWhileSpeaking on, the parts of a long dictation already sent while you spoke have been transcribed and are billed by your provider.

Customize in Keyboard Shortcuts (Ctrl+K Ctrl+S). For a true push-to-talk feel, rebind toggle recording to a single key you never use — Pause/Break, ScrollLock, or a spare mouse button work great as a dedicated dictation key.


All Settings

Settings are grouped into sections in the VS Code Settings UI.

Speech Recognition

Setting Default Description
provider elevenlabs elevenlabs, openai, custom
voiceModel auto STT model (auto, scribe_v2, gpt-transcribe)
language (auto) Language code or auto-detect
preferredLanguages [] Shortlist for quick switching

Text Processing

Setting Default Description
textProcessing.codeAware true Spoken-to-symbol conversion
textProcessing.aiCleanup false LLM cleanup (requires OpenAI key)
textProcessing.aiModel gpt-6-luna Model for text cleanup (gpt-6-luna, gpt-6-sol)

Recording

Setting Default Description
recording.mode toggle toggle or hold
recording.maxDuration 300 Max seconds (10-3600)
recording.silenceTimeout 0 Auto-stop on silence (0 = off; needs parecord or arecord on Linux)
recording.transcribeWhileSpeaking false Transcribe long dictations (from about 50 seconds) in parts while you speak; costs about 10–25% more

Output

Setting Default Description
output.target clipboard clipboard or editor
output.autoCopy true Also copy to clipboard

Feedback

Setting Default Description
feedback.showCost true ElevenLabs credits left, or today's speech-to-text cost, in the status bar
feedback.transcriptionSound false Chime on completion

All settings under the codeDictator.* namespace.


How It Works

Code Dictator records with a tool on your system, because VS Code does not give extensions' web views access to the microphone (microsoft/vscode#113916). It auto-detects what is installed: parecord / pw-record (PulseAudio/PipeWire — so Bluetooth mics work) or arecord (ALSA) on Linux, SoX on macOS, ffmpeg on Windows. You don't configure anything: once a tool is installed (see Requirements), it just works.

Long dictations can be transcribed in parts while you speak (recording.transcribeWhileSpeaking, off by default). From 40 seconds into a recording, Code Dictator cuts it at a pause in your speech (by 65 seconds at the latest), then about every 20 to 45 seconds, and sends each part while you go on talking. With the language on auto-detect, a part waits until you have said another 6 seconds or so after it, so the last part is never too short for its language to be recognised; in practice the first part goes out about 50 seconds into a dictation (sooner after a pause of 2 seconds or more), or about 55 with auto-detect. Each part goes with 2.5 seconds of audio on either side of its cuts, so the speech-to-text service hears how a sentence goes on and does not end it at the cut. Each word is then kept from one part only: by its timestamp with ElevenLabs, and with other providers by joining the two texts in the middle of the words both parts heard; when two parts' texts share no words although both heard speech there, the whole recording is sent when you stop instead. That shared audio is billed twice, about 10 to 25% more for a long dictation. When you stop, only the last part is left to transcribe, and the texts are joined. Shorter dictations are sent whole when you stop, exactly as with the setting off. If the last part cannot be transcribed, the recording is kept for Retry, which sends all of it again, so the parts already transcribed are billed twice; the same happens when you change the language, the provider or its API key during a dictation.

Adaptive silence detection (when enabled; on Linux with parecord or arecord) uses dual exponential moving averages to track your noise floor and speech energy in real-time. No calibration needed — it adapts to your microphone and environment automatically. See the technical reference for details.


Filler Word Removal

Automatic, free, no API needed. Covers 90+ languages — English uh/um/er, German äh/ähm, French euh/heu, Russian ну/значит, Japanese えーと/あの, and many more.

For deeper cleanup (rephrasing, grammar), enable AI text cleanup which uses an OpenAI LLM.


Troubleshooting

Why isn't there a microphone button inside AI chat windows? VS Code's Extension API does not allow extensions to inject buttons, icons, or any custom UI into another extension's chat panel. Each extension's views are sandboxed — there is no API for a third-party extension to modify the Claude, Copilot, or any other chat interface. This is a VS Code platform limitation, not something any extension can work around. The keyboard shortcut (Alt+D) and the status bar microphone button work universally across all contexts — click into the chat input, press Alt+D, speak, and paste. No in-panel button needed.

Microphone not detected Check that a recording tool is installed and that your system lets VS Code use the microphone.

  • macOS: brew install sox, then System Settings → Privacy & Security → Microphone → enable VS Code
  • Windows: winget install Gyan.FFmpeg, then Settings → Privacy & security → Microphone → turn on "Let desktop apps access your microphone"
  • Linux: you need one of parecord, pw-record or arecord (Debian/Ubuntu packages pulseaudio-utils, pipewire-bin, alsa-utils). Check the input device with pavucontrol

Recording fails in Remote / SSH / WSL Voice input requires a local VS Code window. Remote environments don't expose microphone access to extensions.

The status bar shows a cost instead of my ElevenLabs credits Your API key may transcribe but not read your account. On elevenlabs.io, open your API keys, edit the key and set the User permission to Read. Hover over the item to see why the balance could not be read.

Transcription comes back empty

  • Test your microphone in another app first
  • Verify your API key: run Code Dictator: Set API Key from the Command Palette

Short phrases transcribed in the wrong language? Speech-to-text models use context to identify the language. Longer utterances give the model more signal, so full sentences ("Refactor the auth middleware to use JWT tokens and add rate limiting") are transcribed accurately almost every time. Shorter phrases — around five words or fewer — may not contain enough context for reliable language detection. If you frequently dictate short commands, try setting a specific language in settings instead of relying on auto-detect. Alternatively, configure your Preferred Languages list — when AI text cleanup is enabled, it uses this list as a language hint to avoid unwanted language switches.


Privacy

  • API keys stored in your OS keychain — never on disk in plaintext
  • Audio sent only to your configured provider: when you stop or, with recording.transcribeWhileSpeaking on, in parts while you speak in long dictations. Parts already sent are billed even if you cancel with Escape.
  • With ElevenLabs, the credit balance in the status bar is read from your ElevenLabs account with your key (feedback.showCost turns it off)
  • No telemetry, no analytics, no data collection
  • No audio retained after transcription

Contributing

Open an issue to discuss changes. PRs welcome.


License

MIT — see LICENSE.


If Code Dictator saves you time, consider buying me a coffee.

Built by Dmytro Lisnichenko · irrationalways.com

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft