Converts audio files to the most common VoIP Telephony standards g711a, g711u, g722, g729, opus-nb and opus-wb
The Script needs ffmpeg and slhck/ffmpeg-normalize to be installed on the system. If you are running Python 3.5 you can use the modified version of slhck/ffmpeg-normalize included in this repo. To convert to G.729 a slightly modified version of g729a-python is needed. But this is also already included in this repo.
usage: convan [-h] [-n NAME] [-o OUTPUTDIR] [-s] [-k] [-m] [-w] [--del_og] [-d] file [file ...] Mixes the audio FILEs given as arguments down to mono, then normalizes them (if -m is not specified). Then it converts them to sets of audio files transcoded to the most common VoIP Telephony standards g711a, g711u, g722, g729, opus-nb and opus-wb. positional arguments: file One or more file(s) to convert options: -h, --help show this help message and exit -n NAME, --name NAME Specify the name of the subdirectory and audio files -o OUTPUTDIR, --outputdir OUTPUTDIR Specify an output directory -s, --nosubdir Disables the creation of a subdirectory; incompatible with -m -k, --keeptmp Keep all temporary files after conversion -m, --moveog Moves the original file into the subdirectory; incompatible with -s -w, --wavonly Converts any given compatible file to a WAV file only --del_og Deletes the original file after conversion -d, --debug Show additional information and ffmpeg output