Nothing on the phone
Wireless debugging plus scrcpy 3.2 or newer. No APK is built, published or required.
phone-mic · android phone as a linux microphone
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.
4 rules it keeps
One process, one PipeWire node, one command. The phone stays a phone.
Wireless debugging plus scrcpy 3.2 or newer. No APK is built, published or required.
Discord, OBS, browsers and recorders pick Phone-Mic from their own device list.
No tray icon, no window, no updater in the background. The command is the interface.
A systemd user service owns the bridge, so closing the terminal never cuts the audio.
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.
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.
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
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.
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.
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.
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 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.
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.
$ sudo pacman -S --needed \
pipewire-audio android-tools scrcpy $ git clone https://github.com/lMordhel/Phone-mic.git
$ cd Phone-mic && ./packaging/install.sh $ 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