diff --git a/bin/rtp-sender.sh b/bin/rtp-sender.sh index af73d6f..06274d4 100755 --- a/bin/rtp-sender.sh +++ b/bin/rtp-sender.sh @@ -19,4 +19,15 @@ case $action in pactl unload-module module-rtp-send pactl unload-module module-null-sink ;; + add) + pactl load-module module-rtp-send \ + source rtp_sink.monitor \ + destination_ip=$2 \ + port=46000 \ + codec=audio/L16 \ + channels=2 \ + rate=48000 \ + format=s16be \ + sap=0 + ;; esac