🔗 Official Documentation: VS Code Documentation
📦 Download/Install: Get VS Code
🏷️ Version Requirements: VS Code v1.99+ (with MCP preview feature)
Visual Studio Code is a popular open-source code editor from Microsoft. With the MCP preview feature in v1.99+, Voice Mode brings natural voice conversations to VS Code, enabling hands-free coding and verbal interactions with AI assistants.
- VS Code v1.99+ installed
- Python 3.10 or higher
- uv package manager (
curl -LsSf https://astral.sh/uv/install.sh | sh) - OpenAI API key (or compatible service)
- System audio dependencies installed (see main README)
# Enable MCP in VS Code settings
# Configure Voice Mode in .vscode/mcp.json
# Use Copilot Chat with voice commandsDownload and install from: https://code.visualstudio.com/download
- macOS: Download the .zip file and move to Applications
- Linux: Use package manager or download .deb/.rpm package
- Windows: Download the installer and run
- Open VS Code Settings (Cmd+, or Ctrl+,)
- Search for "chat.mcp.enabled"
- Enable the checkbox for "Chat: Mcp: Enabled"
- Restart VS Code
Configuration File Location:
Create a .vscode/mcp.json file in your workspace root or user settings:
Add Voice Mode to MCP servers:
{
"servers": {
"voice-mode": {
"command": "uvx",
"args": ["voice-mode"],
"env": {
"OPENAI_API_KEY": "your-openai-key"
},
"type": "stdio"
}
}
}Note: Using uvx means Voice Mode will be downloaded and run on-demand. No separate installation required!
After saving the configuration and enabling MCP, restart VS Code for changes to take effect.
For advanced configuration, you can set these environment variables:
# Required
export OPENAI_API_KEY="your-key"
# Optional - Custom STT/TTS endpoints (comma-separated lists)
export VOICEMODE_TTS_BASE_URLS="http://127.0.0.1:8880/v1,https://api.openai.com/v1"
export VOICEMODE_STT_BASE_URLS="http://127.0.0.1:2022/v1,https://api.openai.com/v1"
# Optional - Voice preferences (comma-separated lists)
export VOICEMODE_TTS_VOICES="af_sky,nova,alloy"
export VOICEMODE_TTS_MODELS="gpt-4o-mini-tts,tts-1-hd,tts-1"-
Check MCP Server Status:
- Open Command Palette (Cmd+Shift+P or Ctrl+Shift+P)
- Search for "Developer: Show Running Extensions"
- Verify MCP servers are loaded
-
Test Voice Mode:
- Open VS Code
- Open Copilot Chat (if available)
- Type: "@voice-mode talk to me"
- Try saying: "Hello, can you hear me?"
In Copilot Chat:
@voice-mode "Let's have a voice conversation"
You: "What does this code do?"
AI: [Speaks the explanation]
@voice-mode "Help me refactor this function using voice"
You: "Make this function async"
AI: [Explains changes verbally while showing code]
- Ensure MCP is enabled in VS Code settings (chat.mcp.enabled)
- Check that
.vscode/mcp.jsonexists and is valid JSON - Verify your OPENAI_API_KEY is set correctly
- Check system audio permissions for VS Code
- Run audio diagnostics:
python scripts/diagnose-audio.py - Ensure microphone is not muted
- Ensure you have VS Code v1.99 or higher
- Check that the MCP preview feature is enabled
- Try using VS Code Insiders if stable version doesn't have it yet
- Grant microphone permissions to VS Code when prompted
- Code Helper processes may also need microphone access
- Install PulseAudio or PipeWire for audio support
- May need:
sudo apt-get install portaudio19-dev(Debian/Ubuntu)
- Native Windows support requires WSL2
- For best results, run VS Code from WSL2
To use local services for privacy:
-
Start Kokoro TTS:
# In VS Code terminal uvx voice-mode kokoro-start -
Configure endpoints in
.vscode/mcp.json:{ "mcpServers": { "voice-mode": { "command": "uvx", "args": ["voice-mode"], "env": { "OPENAI_API_KEY": "your-key", "VOICEMODE_TTS_BASE_URLS": "http://127.0.0.1:8880/v1,https://api.openai.com/v1", "VOICEMODE_STT_BASE_URLS": "http://127.0.0.1:2022/v1,https://api.openai.com/v1" } } } }
For room-based voice conversations:
- Configure LiveKit server in environment variables
- Useful for collaborative coding sessions with voice
- 📚 Voice Mode Documentation
- 🔧 Configuration Reference
- 🎤 Local STT/TTS Setup
- 🏠 LiveKit Integration
- 💬 VS Code MCP Documentation
- 🐛 Troubleshooting Guide
- 💻 VS Code Official Docs
Need Help? Join our Discord community or check the FAQ