App Play Store | Github | Kaytat's Blog Post
Run pactl list sources short
Look for “analog-stereo.monitor” and take note of the index number on the left. In my case, it’s 1.
0 alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
1 alsa_output.pci-0000_00_1b.0.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
2 alsa_input.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
sudo nano /etc/pulse/default.pa
Add the following line near the bottom, substituting your source index:
load-module module-simple-protocol-tcp source=1 record=true port=12345
pulseaudio -k && pulseaudio --start