Skip to content

Instantly share code, notes, and snippets.

@lisaah
Last active November 11, 2022 15:47
Show Gist options
  • Save lisaah/8621700 to your computer and use it in GitHub Desktop.
Save lisaah/8621700 to your computer and use it in GitHub Desktop.
Simple batch script to convert .aiff files in current directory into .wav and put them in a directory. Didn't feel like setting sox as an environment variable so it's called directly.
@echo off
REM Dependency:
REM SoX: http://sox.sourceforge.net/
mkdir converted_wav
for %%f in (*.aiff) do (
"C:\Program Files (x86)\sox-14-4-1\sox" %%~nf.aiff "converted_wav/%%~nf.wav"
)
pause
@lisaah
Copy link
Author

lisaah commented Nov 11, 2022

Hi! I Wonder if it would work on the opposite side? Wav to Aiff? Thanks?

It's been a long time since I've used this, but I don't see why not. You'd just need to feed in .wav files and specify the output as .aiff instead. https://sox.sourceforge.net/sox.html documentation is probably best reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment