Visual Studio Code does not have a single toggle command for dictation.
You must simulate it using two commands and when conditions.
- Start Dictation:
workbench.action.editorDictation.start
- Stop Dictation:
workbench.action.editorDictation.stop
[
{
"key": "ctrl+alt+v",
"command": "workbench.action.editorDictation.start",
"when": "!speechToTextInProgress"
},
{
"key": "ctrl+alt+v",
"command": "workbench.action.editorDictation.stop",
"when": "speechToTextInProgress"
}
]