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