mic-to-udp.sh 518 B

123456789101112
  1. #!/bin/bash
  2. if [ $# -ne 1 ]; then
  3. echo "1 arg, target host (120,151?)"
  4. exit 1
  5. fi
  6. echo gst-launch-1.0 alsasrc ! audioconvert ! audioresample ! mulawenc ! rtppcmupay ! udpsink host=$1 port=5001
  7. gst-launch-1.0 alsasrc ! audioconvert ! audioresample ! mulawenc ! rtppcmupay ! udpsink host=$1 port=5001
  8. #gst-launch-1.0 alsasrc slave-method=0 ! audioconvert ! audioresample ! alawenc ! rtppcmapay ! udpsink host=$1 port=5001
  9. #gst-launch-1.0 alsasrc ! audioconvert ! audioresample ! alawenc ! rtppcmapay ! udpsink host=