Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Voice PromptNew to Visual Studio Code? Get it now.
Voice Prompt

Voice Prompt

CursorMatfia

| (0) | Free
Voice-to-text extension using Whisper STT
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Voice Prompt

VS Code extension for voice-to-text transcription using Whisper STT.

Features

  • Voice recording with real-time timer
  • Speech-to-text using local Whisper model
  • Auto-download Whisper models from Hugging Face
  • Insert transcribed text at cursor position
  • Copy to clipboard
  • Transcription history (last 10 items)
  • Keyboard shortcut support

Development Setup

Prerequisites

  • Node.js 18+
  • VS Code 1.85+

Installation

npm install
npm run compile

Testing the Extension

Method 1: Using F5 (Recommended)

  1. Open this project in VS Code
  2. Press F5 to launch Extension Development Host
  3. A new VS Code window will open with the extension loaded

Method 2: Using Debug Panel

  1. Open this project in VS Code
  2. Go to Run and Debug panel (Cmd+Shift+D)
  3. Select "Run Extension" from the dropdown
  4. Click the green play button

Method 3: Watch Mode

npm run watch

Then press F5 to launch. Changes will auto-compile.

Using the Extension

Start Recording

  • Click the microphone icon in the status bar (bottom right)
  • Or press Cmd+Shift+V (Mac) / Ctrl+Shift+V (Windows/Linux)
  • Or open Command Palette (Cmd+Shift+P) and search "Voice Prompt: Start Recording"

In the Voice Prompt Panel

  1. Click the microphone button to start recording
  2. Speak into your microphone
  3. Click again to stop recording
  4. Wait for transcription to complete
  5. Use the buttons:
    • Copy to Clipboard: Copy the transcribed text
    • Insert at Cursor: Insert text at current editor cursor
    • Clear: Clear the text area

Microphone Permission (macOS)

If you see a microphone permission error:

  1. Open System Settings
  2. Go to Privacy & Security > Microphone
  3. Enable Visual Studio Code
  4. Restart VS Code

Or click the "Open System Settings" button in the error message.

Configuration

Open VS Code Settings and search for "Voice Prompt":

Setting Default Description
voiceprompt.whisperModel tiny Whisper model size (tiny/base/small)

Model Sizes

Model Size Speed Accuracy
tiny 75 MB Fastest Good
base 142 MB Fast Better
small 466 MB Moderate Best

Project Structure

voiceprompt/
├── src/
│   ├── extension.ts           # Extension entry point
│   ├── whisperService.ts      # Whisper STT integration
│   ├── modelDownloader.ts     # Model auto-download
│   ├── historyService.ts      # Transcription history
│   └── webview/
│       └── webviewProvider.ts # Recording UI panel
├── .vscode/
│   ├── launch.json            # Debug configuration
│   └── tasks.json             # Build tasks
├── package.json
└── tsconfig.json

Scripts

npm run compile   # Build the extension
npm run watch     # Build and watch for changes
npm run lint      # Run ESLint
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft