blog /

Claude Code Voice Mode Over SSH: Three Paths That Work

Claude Code voice mode over SSH does not work out of the box: Anthropic's docs say dictation needs a local microphone and does not work in SSH sessions. The server has no microphone, and nothing hands it yours. Three paths get around that. Dictate from the qoop Android app, use your computer's own dictation in the local terminal, or let qoop lend your local microphone to Claude Code on a Linux server. Pick a row below, then follow its step.

Before you start

PathWorks forYou needLimit
Path 1, phone mic (Step 2)Any agent, in a local or an ssh spaceThe qoop Android app on a phone, signed in with the account the computer used for qoop loginThe iPhone app is not public, and the browser page at qoop.si/app has no mic
Path 2, OS dictation (Step 3)Any agentYour OS's dictation and a terminal window on the machine you sit atIt types plain text, so proofread before Enter
Path 3, lent microphone (Step 4)Claude Code's /voice onlyA Linux server, qoop in a remote tab, SoX on the machine with your windowUp to 120 seconds per key press

Only path 3 uses Claude Code's own /voice. It needs a claude.ai sign-in: the docs say the speech-to-text service is not available with an Anthropic API key, Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry. If Claude Code is not on the server yet, start with running Claude Code on a remote server.

Step 1: Why Claude Code voice mode over SSH fails

/voice records from the machine where claude runs. Per Anthropic's voice dictation docs, it needs a local microphone and does not work in cloud sessions or SSH sessions.

On a headless Linux server with SoX installed, as of Claude Code v2.1.195, you see this:

Voice mode requires a microphone, but SoX could not open an audio capture device

Retry and you get Voice input is failing repeatedly and has been paused, which the docs tie to a headless server or a remote shell with no audio passthrough.

So no server setting fixes it: type the words from a device with a microphone (paths 1 and 2), or give the server's Claude Code one (path 3).

Step 2: Dictate from the phone app

The phone app is Android only for now, a public download from qoop.si. The iPhone app is not public and the browser page has no mic, so use path 2 or 3 there. First make the server show on the phone. On your computer run qoop remote add devbox me@devbox once and qoop login, then sign in to the qoop app with the same account. No pairing code is needed. To reach the server with the Mac off, pair the server itself, with a qoop session running there, using ssh -t devbox '~/.local/bin/qoop pair', and scan the QR code in the app. A browser cannot pair.

  1. In the app, open Agents and pick the Claude Code tab in the server's space, for example devbox:api.
  2. Tap the mic key to the right of the field ("Speak to the terminal"). The first tap asks for a language, and the app asks for microphone and speech recognition permission. Long press the key ("Hold to choose the language") to change it later.
  3. Speak. The phone transcribes with its built-in recognizer and puts the text in the field. Tap the mic again ("Stop listening").
  4. Read the line, then tap the send button ("Send, press Enter").

The words reach the terminal as typed keys, so this works for a local space and an ssh space alike, and for whatever program the tab runs. It is phone dictation, not the agent's own voice feature.

Step 3: Use OS dictation locally

Your computer's dictation types into the focused window. In a terminal running ssh, the words should land in Claude Code's prompt on the server.

On a Mac, from Apple's Dictation page:

  1. Choose Apple menu, System Settings, Keyboard. Under Dictation turn it on and click Enable.
  2. Click in the terminal window at Claude Code's prompt.
  3. Press the Microphone key if your function row has one, use the Dictation keyboard shortcut, or choose Edit, Start Dictation.
  4. Speak when the cursor pulses or you hear the tone.
  5. Press Escape, the Microphone key or the shortcut to stop. It also stops after 30 seconds without speech.

Two cautions. Apple documents "new line" as pressing Return, so do not say it at an agent prompt unless you mean to send. And Claude Code's own dictation is tuned for coding terms, while Apple's page makes no such promise: check identifiers and file names before Enter.

On Windows, voice typing starts with Windows key+H and needs the cursor in a text box. Microsoft's page does not say whether a terminal window counts.

Step 4: Lend the local mic with SoX

Only this path runs Claude Code's own /voice on the server, and only on Linux servers.

On the server, qoop's daemon puts a command named arecord first on the search path of its tabs. Claude Code's docs say that on Linux it falls back to arecord or SoX's rec when its built-in recorder cannot load, which is how it finds a microphone there. Your local window records with SoX rec. One key press in the focused agent tab buys one recording of at most 120 seconds, and a notice appears on screen.

  1. On the machine with your window, install SoX. qoop's own message names brew install sox, the Mac route.
  2. Add the server once: qoop remote add devbox me@devbox. If qoop is missing there, it offers to install itself over the same ssh. The first install is covered in install qoop and start your first agent.
  3. Run qoop, open a space on the server (it appears as devbox:api), and start claude in a tab there.
  4. Type /voice. Claude Code runs a microphone check and prints a line like Voice mode enabled (hold). Hold space to record. Dictation language: en (/config to change). That line is the docs' example, not captured output.
  5. Hold Space in that tab and speak. If it types spaces or does nothing, see the last table: /voice tap is the documented switch.

Step 5: Know the limits

  • The lent microphone is for Claude Code's /voice on Linux servers. For any other agent, use the phone or OS dictation.
  • Without SoX on your side qoop says voice in remote tabs needs SoX here: brew install sox. With no qoop window attached, qoop says no microphone here, and no qoop window lends one.
  • Claude Code's own limits still apply: in tap mode, recording stops after 15 seconds of silence or two minutes in total, and audio goes to Anthropic's servers for transcription.
  • Whether hold or tap mode behaves better through a lent microphone is not documented. Start with hold. Claude Code documents /voice tap as the switch when held-key detection does not trigger.

Check it worked

  • Phone: your words showed up in the field before you tapped send. No mic key means you are in the browser.
  • OS dictation: one short sentence appeared at an empty Claude Code prompt without touching the keyboard.
  • Lent mic, your side: command -v rec prints a path. Nothing printed means SoX is not installed.
  • Lent mic, qoop side: qoop remote ls lists the server, and you hold Space in a tab of its space.
  • Lent mic, Claude side: /voice prints Voice mode enabled, and holding Space brings up the notice on screen.

When it does not work

What you seeLikely causeWhat to do
voice in remote tabs needs SoX here: brew install soxSoX is missing on the machine with your windowRun brew install sox there
no microphone here, and no qoop window lends oneNo qoop window is attached to that tabRun qoop on your computer and open the server's space
Voice mode requires a microphone, but SoX could not open an audio capture deviceclaude is most likely running in a plain ssh session, not a qoop tabStart claude in a tab of the remote space
Unknown command: /voiceNot signed in with a claude.ai account, or an API key or provider setting takes precedenceRun /login and remove the key or provider setting
Voice input is failing repeatedly and has been pausedThree failures within 10 secondsFix the cause above, wait 10 seconds, try again
Spaces keep piling up in the promptVoice is offRun /voice hold
One or two spaces, then nothingKey-repeat events are not reaching Claude Code, so hold detection does not triggerRun /voice tap
The server is missing from the phoneThe computer is not signed in, or the account differsRun qoop login again and use the same account in the app

If you want the phone mic and the lent microphone next to your servers, sign up at qoop.si.