xfnw's blog

A blog about owens

pulseaudio rtp stuff

May 18, 2022 — owen

on nixos you can accept rtp streaming with

{
  sound.enable = true;
  hardware.pulseaudio.enable = true;
  hardware.pulseaudio.extraConfig = ''
    load-module module-rtp-recv latency_msec=10 sap_address=0.0.0.0
  '';
}

then on another computer you can do

pactl load-module module-null-sink sink_name=rtp sink_properties="device.description='RTP'"
pactl load-module module-rtp-send source=rtp.monitor destination_ip=whatever
pactl set-default-sink rtp

to send the audio

Tags: audio