Skip to content

rustAudioMixing is a Rust code for mixing audio files, allowing users to combine multiple audio files and calculate the average of their samples.

Notifications You must be signed in to change notification settings

Khubaib96/rustAudioMixing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio Resampler & Mixer

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.

Usage

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

  1. Navigate to the cloned directory: cd audio-resampler
  2. Build the project: cargo build --release
  3. Run the program: ./target/release/audio-resampler <input_file_path> <output_file_path>
  4. 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.

For example:

./target/release/audio-resampler input.wav output.wav

Dependencies

This program uses the following crates:

  1. hound for reading and writing WAV files
  2. rubato for resampling audio
  3. std and collections from the Rust standard library

About

rustAudioMixing is a Rust code for mixing audio files, allowing users to combine multiple audio files and calculate the average of their samples.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages