PHONE-MIC Español Install

phone-mic · android phone as a linux microphone

PHONE-MIC

Your phone is the microphone now.

scrcpy captures the phone mic over adb, PipeWire republishes it as Phone-Mic and every application you already own converts it into an ordinary input device. Nothing to install on the phone, no driver, no proprietary cable.

Why it feels native

4 rules it keeps

One process, one PipeWire node, one command. The phone stays a phone.

Nothing on the phone

Wireless debugging plus scrcpy 3.2 or newer. No APK is built, published or required.

One device, every app

Discord, OBS, browsers and recorders pick Phone-Mic from their own device list.

Terminal only

No tray icon, no window, no updater in the background. The command is the interface.

Survives the window

A systemd user service owns the bridge, so closing the terminal never cuts the audio.

The panel

one snapshot, real controls

Every reading is a real PipeWire control. GAIN is what applications receive, VOLUME is what arrives from the phone, and the meter opens its own 8 kHz capture client. A reading that could not be taken is shown as unknown — an em dash — never as a plausible zero.

phone-mic
The phone-mic terminal panel. PHONE LINK shows a connected Redmi Note 13 over Wi-Fi at 192.168.100.57, the bridging service state, a 50 millisecond buffer and routing OK. A value that cannot be read is printed as an em dash instead of a number, and an unavailable link is named — NO ADB, UNAUTHORIZED or OFFLINE — with its cause and the command that fixes it. INPUT MONITOR draws a waveform; the input level reads -10.5 dB peak and -20.7 dB RMS, and when nothing can be measured it says NO CAPTURE TOOL or NO SIGNAL. VIRTUAL MICROPHONE lists Phone-Mic, a PipeWire remap source, as active with gain and volume at 100 percent; when the audio server does not answer it says AUDIO SERVER DOWN with its cause and the fixing command. The footer has two lines and lists every key: C connect, X stop, M mute, A reroute, D devices, T theme, R reconnect, Q quit, Tab to switch between gain and volume, and the arrow keys to adjust by 5 percent.
below 62×20 columns it prints “terminal too small” instead of a broken frame meter cost ≈ 16 kB/s

Keys, not menus

one keystroke per action

The dashboard is a TUI on purpose: no pointer, no navigation stack, no dialog that hides the reading you were watching.

  • C Connect start the bridge service
  • X Stop stop the bridge service
  • M Mute virtual microphone on or off
  • A Reroute move the stream back to the sink
  • D Devices list PipeWire input devices
  • R Reconnect reconnect adb
  • Tab Gain / Volume switch the focused control
  • ← → ±5 % adjust the focused control
  • T Theme picker with the twelve palettes
  • Q Quit the bridge keeps running

Twelve palettes

a theme is a look, not an accent

Background, border, labels, state colours and the three level colours move together, saved to ~/.config/phone-mic/tui.conf. Colours use the portable 256-colour palette by default; redefining the terminal’s own palette is opt-in with PHONE_MIC_EXACT=1, because some terminals advertise that capability and ignore it. In the picker, moving the selection previews the theme, Enter applies and saves it, and esc or t restores the saved one. This page is painted with the same values the panel uses.

PASTEL

DARK

LIGHT

WARM

Not security tested

read before you install

phone-mic is a small utility, not a hardened product. What follows is stated plainly so nobody discovers it later.

No security testing has been performed on phone-mic. There has been no security audit, no threat model, no penetration test, no fuzzing and no adversarial review of this codebase. The functional checks documented in the manual say nothing about whether it resists a malicious network, a malicious application on the same machine, or hostile input.

The microphone stays open while it runs

While phone-mic-bridge is running, the phone captures audio continuously and publishes it as an input device every application can select. Stop the service when you do not need it.

Wireless debugging is real access

Pairing gives this PC adb access to the phone: shell commands, file access, app installation. The pairing code is a credential. Remove the pairing on the phone when you are done, and keep wireless debugging off between sessions.

No privilege boundary is added

The installer runs as your user and writes to ~/.config, ~/.local and a systemd user unit. It needs no root, and it also creates no sandbox: the bridge and the PipeWire node run with your permissions.

The tests that exist are functional

The status table in the manual records manual checks on one machine (CachyOS, PipeWire 1.6, Hyprland): device present, bridge capturing, panel working, service reconnecting. It is not coverage of other distributions, other versions or hostile input.

If that is not acceptable for your use, do not install it. The manual has a complete uninstall that removes the command, the prefix, the unit and the PipeWire fragment, and leaves the remembered adb state alone.

Install

no root, no PipeWire restart

The installer is a self-contained per-user install: it copies the panel, the scripts, the configuration and the documentation into ${XDG_DATA_HOME:-~/.local/share}/phone-mic, then generates the phone-mic command and the phone-mic-bridge unit from that prefix, so moving or deleting the checkout afterwards breaks nothing. The PipeWire fragment is installed where PipeWire reads it. It never restarts PipeWire, because that drops Bluetooth links and screencasts, and it does not enable the service at login. A preflight names adb, scrcpy 3.2 or newer (the release that added --audio-source=mic) and pactl answering from pipewire-pulse, with the command that fixes each one; a missing tool never aborts an otherwise valid install. Options: --prefix DIR, --version, --help and --uninstall.

1 · dependencies (Arch and derivatives)
$ sudo pacman -S --needed \
    pipewire-audio android-tools scrcpy
2 · the installer
$ git clone https://github.com/lMordhel/Phone-mic.git
$ cd Phone-mic && ./packaging/install.sh
3 · check it, then talk
$ phone-mic status
● Phone-Mic  PipeWire remap source            ACTIVE
● bridge      waiting for the phone           retrying

$ phone-mic start
● bridge      connected over Wi-Fi            50 ms buffer
then pick Phone-Mic in Discord, OBS or the browser microphone picker the service reconnects by itself