Skip to content

Instantly share code, notes, and snippets.

View aptdnfapt's full-sized avatar
😸
cat

idcbtw aptdnfapt

😸
cat
View GitHub Profile
@aptdnfapt
aptdnfapt / voice-input-over-wifi.md
Created December 28, 2025 02:24
how to use a local mic on a remote device (linux) uses netcat and pulseaudio . (local use or over a vpn like tailscale)

input device

parec -d alsa_input.pci-0000_00_0e.0.analog-stereo --format=s16le --rate=48000 --channels=2 --latency-msec=20 | nc 192.168.1.106 9999

192.168.1.106 9999 is the output device ip and port

output device

nc -l -p 9999 | pacat --format=s16le --rate=48000 --channels=2 --latency-msec=20 -d VirtualMic

here -p is port