selcal/scripts/audio-pipe.sh

9 lines
139 B
Bash
Executable File

#! /bin/sh
set -eux
audio_file=$1
sample_rate="44100"
channels="2"
ffmpeg -i ${audio_file} -f s16le -ac ${channels} -ar ${sample_rate} -