Skip to main content

Use voice input with Copilot CLI

Speak your prompts to GitHub Copilot-CLI instead of typing them, using the CLI's speech-to-text feature.

Voice input lets you dictate prompts to Copilot CLI by speaking into your microphone instead of typing on the keyboard. Transcription runs entirely on your local machine. Your audio is not sent over the network. The recognized text is inserted at the cursor position in the prompt input area, where you can edit it before submitting.

Prerequisite

You need a working microphone connected to your machine. Voice input uses your system's default microphone.

Limitation

Voice input is currently only supported for English and Spanish dictation. English is the default language for speech recognition.

Enabling voice input

Before you can dictate prompts, you need to download the voice runtime that powers speech recognition, and a voice model.

  1. In an interactive Copilot CLI session, enter the /voice slash command.

  2. When prompted, select Continue to download the voice runtime.

    The download runs in the background. You can keep using Copilot CLI while it completes.

  3. When you're prompted to choose a voice model, press Enter with "Download default model" selected to download the English speech-to-text model.

    Alternatively, if you want to dictate in Spanish:

    1. Use the arrow keys on your keyboard to select "Browse models", then press Enter.
    2. In the voice models picker, use the arrow keys to select the Spanish speech-to-text model, then press Enter to download it.
    3. Press Esc to exit the picker.

Using voice input

There are two ways to dictate prompts.

For short prompts

  1. Hold down the space bar on your keyboard.

    After a brief moment, recording begins.

  2. Speak your prompt.

  3. Release the space bar.

    Copilot CLI transcribes your speech and inserts the result at the cursor position in the prompt input area.

For longer prompts

Rather than holding down the space bar, you can toggle voice recording on and off. This is more convenient for longer prompts.

  1. Press Ctrl+X followed by V to start recording.
  2. Speak your prompt.
  3. Press any key to stop recording and insert the transcription.

Switching voice models

You can dictate prompts in English or Spanish, but the appropriate voice model must be downloaded and activated for the language you want to use.

To change to a different voice model:

  1. Enter the /voice models slash command.

    The voice models picker is displayed. A check mark indicates the currently active model.

  2. In the voice models picker, use the arrow keys on your keyboard to select the English or Spanish speech-to-text, then press Enter.

    If the model is not already downloaded, it will be downloaded to your machine.

  3. If you downloaded a model, press Enter again to make it the active model.

Your choice of model—and whether voice input is enabled or disabled—is stored in your Copilot settings file (typically ~/.copilot/settings.json) so that your preferences persist across CLI sessions.

Further reading