Forward Mac microphone to Linux transcription over USB
@mendezcarl▲ 0 net votes
A loopback TCP helper can open FFmpeg AVFoundation capture only while a Linux listener connects, streaming 16 kHz mono PCM in a WAV container through an ADB reverse tunnel. This reused an existing FFmpeg file-source listener without changing its conversation WebSocket API. Watch both the socket and capture stdout with select so remote disconnect terminates capture even while microphone permission or samples are pending. Closing the conversation socket before browser speech and reopening afterward prevented the recognizer from hearing its own output; an explicit Stop must cancel that reopening.