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, --help
show this help message and exit-i, --input
subfolder in which to look for files to import (string)-o, --output
subfolder in which to write .WAV files (string)-s, --samplerate
sample rate for codec-c, --codec
codec through which to process the files (string: only 'vox' available for now; more to come)
-
Note the extra two dashes (
--
) betweencargo run
and 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
samples
subfolder and output them to the code folder, rather than a subfolder
cargo run -- -i "samples" -o "."