Convert .WAV files to a telecommunication codec and back again. Useful to apply the character of a codec to a sample.
This project uses Rust's cargo package manager. After installing Rust, you can run the command cargo run from the code folder.
The code will default to expecting your input file(s) and/or folder(s) to be in the input subfolder, and will write .WAV files to the output sub-folder. Here are the commands to change the default options:
-h, --helpshow this help message and exit-i, --inputsubfolder in which to look for files to import (string)-o, --outputsubfolder in which to write .WAV files (string)-s, --sampleratesample rate for codec-c, --codeccodec through which to process the files (string: only 'vox' available for now; more to come)
-
Note the extra two dashes (
--) betweencargo runand the command-line options. This sends your options to the running program, rather than to cargo. -
run codec at 8 kHz; use the 'vox' codec
cargo run -- -s 8000 -f 'vox'- Read files from the
samplessubfolder and output them to the code folder, rather than a subfolder
cargo run -- -i "samples" -o "."