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

# Start streaming analogue audio input as mono 8ksps ALAW via RTP
# port = The IP port that you want to use for downlink audio (must be opened to the world through your router for TCP)
# host = The remote PC

gst-launch-1.0 pulsesrc device=alsa_input.pci-0000_00_1b.0.analog-stereo ! audio/x-raw, channels=1, rate=8000 ! alawenc ! rtppcmapay ! rtpstreampay ! tcpserversink port=33001 host=192.168.0.5

