Jump to content

Convert audio with one single Alfed call


Recommended Posts

Hey guys,

 

I made an audio converter that works very simply with Alfred, works with single file or multiple files. It can basically be any format to any format, but I made it anything to high quality mp3. Changing that or making it customizable should be straightforward.

 

Though installing the whole thing is somewhat complicated since I'm too lazy to make a pkg. 

 

Is anyone interested? 

Link to comment
Really, no one ? I thought it was cool  :P

Heh. It probably is quite cool, but I already have plenty of tools to do that kind of thing, and I always want to fiddle round with settings too much for it to be much use as in an Alfred interface. But that's just me.

 

What are you using as the backend processor for the conversion?

Link to comment
  • 1 month later...

So I never shared this one yet, so it might be a little tricky.

 

If you don't have a C compiler, follow these instructions (if you don't know what it is, chances are you should follow these instructions too).

http://blog.salientdigital.com/2012/05/16/how-to-fix-no-acceptable-c-compiler-found-in-path-on-mac-os-x-lion/

 

Then, follow these ones

http://ggkarman.de/tech/building-sox-with-mp3-support-on-osx/

 

I have installed Flac support on my computer too but I don't remember how. It was a real pain though... Fell free to look around if you need that ability.

 

Now you can install the workflow:

 

 
Add all the filetypes you'll need in the first part of the workflow (file action):
Screen%20Shot%202013-03-15%20at%2011.02.

 

 

In the second part of the workflow (Run Script), change 

output=$output".mp3";

to 

output=$output".aiff"; 

 

 

There you go, it should now work like a charm. Just select one or multiple audio files (it won't go into folders though) and use the file action on them. (You might want to change the name of the file action too because right now it's "convert to mp3").

 

 

If you want total control of the quality (I have set it up to be the best quality possible, theoretically), to find the exact command your script should execute, read this:

http://linux.die.net/man/1/sox

and then, change this line to whatever your readings tell you:

/usr/local/bin/sox "$input" -C -0.2 "$output"
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...