selcal/scripts/audio-pipe.sh

10 lines
169 B
Bash
Executable File

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