This is a Rust program that resamples audio files (mono or stereo) to a fixed sample rate of 44100 Hz stereo and mix it. The resampling is performed using the rubato crate which provides high-quality resampling using a variety of resampling algorithms.
To use this program, you will need to have Rust installed on your machine.
Clone the repository:
git clone https://github.com/Khubaib96/rustAudioMixing.git
- Navigate to the cloned directory: cd audio-resampler
- Build the project: cargo build --release
- Run the program: ./target/release/audio-resampler <input_file_path> <output_file_path>
- Replace <input_file_path> with the path to the audio file you want to resample, and <output_file_path> with the path where you want to save the resampled audio file.
This program uses the following crates:
- hound for reading and writing WAV files
- rubato for resampling audio
- std and collections from the Rust standard library