This repository houses a collection of Bash scripts for audio processing tasks including data augmentation through pitch shifting, time stretching, and format conversion to WAV using rubberband
and ffmpeg
.
pitch_shift.sh
- Modifies the pitch of audio files within a given range.time_stretch.sh
- Changes the playback speed of audio files without altering the pitch.convert_to_wav.sh
- Converts audio files to WAV format, ensuring compatibility across different systems and software.
rubberband-cli
on Linux orrubberband
on macOS.ffmpeg
for audio conversion.
-
Rubberband: https://breakfastquay.com/rubberband/ - This is the official website for the Rubberband audio stretching library, where you can find information about the tool, including documentation and download instructions.
-
FFmpeg: https://ffmpeg.org/ - This is the official website for FFmpeg, an open-source project consisting of a vast software suite of libraries and programs for handling video, audio, and other multimedia files and streams.
The scripts will guide you through the installation process if these tools are not found.
- Clone the repository to your system.
- Run the desired script with
bash <script_name>.sh
. - Follow the on-screen prompts to input the required paths.
- Source directory path:
/home/user/audio_files/originals
- Destination directory path:
/home/user/audio_files/processed
Note: Always replace placeholders with your specific paths and details.
- the power shell scripts are in the windows folder
- Right-click on the saved file and select "Run with PowerShell".
- Ensure that rubberband is installed and added to your system's PATH before running the script.
Feel free to fork, modify, and send pull requests. Bug reports and suggestions for improvements are also welcome.