Created
April 1, 2018 17:46
-
-
Save vergissberlin/23f1e32571f86da0167f2b3b7d4eda58 to your computer and use it in GitHub Desktop.
Convert WAV files to OpenTX compatible WAV files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p converted | |
for i in *.wav; | |
do name=`echo $i | cut -d'.' -f1`; | |
echo $name; | |
ffmpeg -i "$i" -acodec pcm_s16le -ar 32000 -ac 1 "converted/${name}.wav"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requirements
Using
cd your/path
wget https://gist.githubusercontent.com/vergissberlin/23f1e32571f86da0167f2b3b7d4eda58/raw/718f6b9e5951f29404fbad5dede0cfa6b9c96489/convert-optentx.sh
bash convert-opentx.sh
File name
Take care that the files names fits to following rules: