| ContentId | e3bf9098-7b2f-4b23-9e0f-3d2094bad80a |
|---|---|
| DateApproved | |
| MetaDescription | Visual Studio Code voice accessibility features. Learn here about the various ways VS Code can be used with voice. |
The VS Code Speech extension enables various features by using your voice. Once installed, the extension enables you to dictate into the editor, or to verbally interact with chat in VS Code.
Note
Voice support in VS Code does not require you to be online. Recordings are never sent to any online service but computed local on your machine.
To get started with voice support in VS Code, install the VS Code Speech extension from the marketplace.
You can dictate into the editor via these commands: Voice: Start Dictation in Editor (kb(workbench.action.editorDictation.start)) and Voice: Stop Dictation in Editor (kb(workbench.action.editorDictation.stop)). Once started, a little microphone icon appears where the cursor is, awaiting your voice input:
Press and hold the keyboard shortcut for the voice start command (kb(workbench.action.editorDictation.start)) to enable walky-talky mode. Voice recognition is active until you release the keys, after which the request is submitted automatically.
Note
Dictation even works in other places where a rich editor is used, such as the SCM commit input box and the comments input field when reviewing pull requests.
You can use your voice to talk to chat in VS Code easily. The command Chat: Start Voice Chat (kb(workbench.action.chat.startVoiceChat)) brings up a voice chat, regardless of where the current focus is. If the focus is in the editor, editor inline chat is started, otherwise the Chat view is opened. Alternatively, you can start voice chat in a specific location by using the Chat: Inline Voice Chat, Chat: Quick Voice Chat, or Chat: Voice Chat in Chat View commands.
When voice chat is active, a microphone icon appears in the chat input field, indicating that voice input is active:
Note
When using voice for chat in VS Code, the chat prompt will automatically submit when you pause. You can configure the time to wait before submitting via the setting(accessibility.voice.speechTimeout) setting, or disable this functionality when you configure the setting to 0.
Chat in VS Code also supports text-to-speech capabilities. When you enable the setting(accessibility.voice.autoSynthesize) setting, the chat responses are automatically read out aloud when voice was also used as input. To interrupt the synthesis, select the icon or press kb(workbench.action.speech.stopReadAloud).
Each chat response also shows a new speaker icon, so that you can selectively read out a response aloud.
When using keyboard shortcuts to start voice (kb(workbench.action.editorDictation.start) or kb(workbench.action.chat.startVoiceChat)), either in the editor or chat, you can press and hold the keyboard shortcut to start the voice recognition. When you release the keyboard shortcut, voice recognition will stop. In addition, when used in chat, the prompt will be submitted.
It is possible to enable a mode where VS Code will always listen for the phrase "Hey Code" to start a voice chat session. Configure the setting(accessibility.voice.keywordActivation) setting accordingly to enable this. When VS Code is listening for "Hey Code", a microphone icon appears in the status bar to indicate as such:
You can select from one of the 26 supported languages by using the setting(accessibility.voice.speechLanguage) setting. If you set the value to auto (default value), the VS Code Speech extension uses the VS Code display language, if that language is available.
Each language for the speech extension comes as its own extension. When you start speech recognition for the first time, you will see an extension installation for each language you selected.
Read on to find out about:
- Other VS Code accessibility features.
- Visual Studio Code User Interface - A quick orientation to VS Code.
- Basic Editing - Learn about the powerful VS Code editor.
- Code Navigation - Move quickly through your source code.




