#!/bin/bash
# Script (C) Tim Howe G0ETP 2023

# Start receiving remote ALAW audio stream via RTP
# Adding sync=false to the receiver seems to make playback a lot smoother
# port = The IP port that you are using for downlink audio
# host = The remote PC public IP address

gst-launch-1.0 tcpclientsrc port=33001 host=<IP or name of remote PC> ! application/x-rtp-stream, clock-rate=8000, encoding-name=PCMA, channels=1 ! rtpstreamdepay ! rtppcmadepay ! alawdec ! pulsesink sync=false

