Convert Audio Format

Convert a Raw Audio to a WAV

IN_FILE=...

IN_FORMAT="U16BE"
IN_CHANNELS="2"
IN_RATE="48000"

OUT_FILE="${IN_FILE%.*}.wav"

gst-launch-1.0 -v filesrc "location=${IN_FILE}" \
  ! audio/x-raw,format=${IN_FORMAT},channels=${IN_CHANNELS},rate=${IN_RATE} \
  ! audioconvert \
  ! audio/x-raw,format=F32LE,channels=${IN_CHANNELS},rate=${IN_RATE} \
  ! wavenc \
  ! filesink "location=${OUT_FILE}"