Created
March 17, 2014 09:08
-
-
Save artemch/9596100 to your computer and use it in GitHub Desktop.
Put this script in folder with sound files and run script in terminal. Required Xcode command line tools.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| path = Dir.getwd | |
| extensions = ['.m4a','.mp3','.wav'] | |
| Dir.foreach(path) do |item| | |
| next if item == '.' or item == '..' | |
| if extensions.include? File.extname(item) | |
| string = 'afconvert -f caff -d ima4 ' + item | |
| output = system(string) | |
| puts "output is #{output}" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment