working-udp-audio.sh 659 B

12345678910111213141516
  1. #!/bin/bash
  2. #SOURCE="audiotestsrc is-live=true"
  3. SOURCE='udpsrc port=5001 caps="application/x-rtp" do-timestamp=true ! queue ! rtpspeexdepay ! speexdec'
  4. #SOURCE='audiotestsrc is-live=true'
  5. BANDPASS="audiochebband mode=band-pass lower-frequency=50 upper-frequency=4000 ! audioconvert "
  6. OUTPUT_FORMAT="audio/x-raw,format=S16LE,layout=interleaved, rate=44100, channels=2"
  7. # gst-launch-1.0 -q $SOURCE ! audioconvert ! audioresample ! $BANDPASS ! audioconvert ! $OUTPUT_FORMAT ! fdsink fd=1 sync=true
  8. (
  9. echo 'audio feed ctr isaudio 1';
  10. gst-launch-1.0 -q $SOURCE ! audioconvert ! audioresample ! $OUTPUT_FORMAT ! fdsink fd=1 sync=true
  11. ) | nc 127.0.0.1 9999