feed-mic.sh 350 B

123456
  1. #!/bin/bash
  2. set -euo pipefail
  3. HOST="192.168.2.155:5003,192.168.2.123:5003"
  4. SRC="alsasrc device=hw:CARD=CODEC,DEV=0 slave-method=resample provide-clock=true do-timestamp=true buffer-time=20000"
  5. gst-launch-1.0 $SRC ! queue ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,channels=2,rate=48000,layout=interleaved ! multiudpsink clients=$HOST