pacmd load-module module-null-sink sink_name=rtp format=s16le channels=1 rate=16000
pacmd load-module module-rtp-send source=rtp.monitor
This sets up a multicast socket for RTP streams. When I tested this was 224.0.0.56:46136
Pipe Audio File to RTP sink:
sox -e signed-integer -b 16 -r 16000 -c 1 <input filename> -t pulseaudio rtp
Receive Audio From RTP sink monitor:
parec -d rtp.monitor --rate=16000 --channels=1 | aplay -t raw -f S16_LE -r 16000
(for some reason using sox
for playback I was getting glitchy audio with buffer underruns)
Stop pulseaudio running
systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
Start in forground with debug output:
pulseaudio -vvvvv
TODO