Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VS Code SpeechNew to Visual Studio Code? Get it now.
VS Code Speech

VS Code Speech

Microsoft

microsoft.com
|
712,362 installs
| (22) | Free
A VS Code extension to bring speech-to-text and other voice capabilities to VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Speech extension for Visual Studio Code

Logo

The Speech extension for Visual Studio Code adds speech-to-text and text-to-speech capabilities to Visual Studio Code. No internet connection is required, the voice audio data is processed locally on your computer.

For example, you can use this extension anywhere VS Code offers chat capabilities such as with GitHub Copilot Chat:

Speech to text in Visual Studio Code Chat

You can also use this extension to dictate directly into the text editor:

Editor dictation in Visual Studio Code

Chat responses can be read out aloud if you prefer to listen:

Text to speech in Visual Studio Code Chat

Getting Started

If you want to use this extension in AI powered Chat in VS Code, please install the GitHub Copilot Chat extension and sign in. You will see a microphone icon in all chat interfaces that GitHub Copilot Chat extension provides:

Chat with Microphone Icoin

If you want to use this extension to dicate directly into the editor, no further setup is required!

Keybindings and Walky-Talky Mode

The easiest way to get going with voice in chat is to use the keybinding Ctrl+I (Cmd+I on macOS). If you press and hold the keys, voice transcription starts immediately and submits when you release. Otherwise, when a chat input field is focused, pressing this key will start the voice session until it gets submitted.

For the editor dictation mode, use the keybinding Ctrl+Alt+V (Cmd+Alt+V on macOS).

You can easily configure your own keybinding to your liking via the Keybinding Shortcuts Editor:

{
    "key": "ctrl+u",
    "command": "workbench.action.chat.startVoiceChat",
    "when": "!voiceChatInProgress"
},
{
    "key": "ctrl+u",
    "command": "workbench.action.chat.stopListeningAndSubmit",
    "when": "voiceChatInProgress"
},
{
    "key": "ctrl+d",
    "command": "workbench.action.editorDictation.start",
    "when": "!editorDictation.inProgress"
},
{
    "key": "ctrl+d",
    "command": "workbench.action.editorDictation.stop",
    "when": "editorDictation.inProgress"
}

Settings

You can find all settings that are voice related by opening the Settings Editor and searching for voice:

Voice Settings

If you want chat responses to be automatically read out aloud when you used voice as input, make sure to enable accessibility.voice.autoSynthesize.

Troubleshooting

On certain platforms, it maybe necessary to grant VS Code the permissions to use the microphone. For example, on macOS the "Privacy & Security" settings page has an entry for "Microphone". Make sure that Visual Studio Code is enabled:

Screenshot 2024-02-23 at 08 46 15

Supported Platforms

This extension is compatible with Windows, Linux, and macOS:

  • Windows x64 / ARM
  • macOS x64 / ARM

Linux

This extension only supports the following distributions on the x86 (Debian/Ubuntu), x64, ARM32 (Debian/Ubuntu), and ARM64 (Debian/Ubuntu) architectures:

  • Ubuntu 20.04/22.04/24.04
  • Debian 11/12
  • Red Hat Enterprise Linux (RHEL) 8
  • CentOS 8

The extension depends on the shared library for ALSA applications (libasound).

For more information, please refer to this documentation of the Azure Speech SDK this extension is built with.

Supported Languages

The VS Code Speech extension supports 26 languages in total. You can configure the setting accessibility.voice.speechLanguage to the desired language for speech recognition and synthesis. This may require additional extensions to be installed for the language support.

Issues

This extension is still in development, so please refer to our issue tracker for known issues, and please contribute with additional information if you encounter an issue yourself.

Building

Build Status
Stable Build Status
Nightly Build Status
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft