#!/bin/bash set -euo pipefail HOST="192.168.2.123:5003" SRC="alsasrc device=hw:CARD=CODEC,DEV=0 slave-method=resample provide-clock=true do-timestamp=true buffer-time=20000" gst-launch-1.0 -ve $SRC ! queue !\ audio/x-raw,format=S16LE,channels=2,rate=48000,layout=interleaved !\ audioconvert ! audioresample !\ queue ! matroskamux streamable=true ! tcpclientsink host=192.168.2.123 port=10003