Question

I have checked out http://rubyforge.org/projects/lame-encoder/

but the problem is it isn't documented(i don't even know how to use it) and it wrecks my gemfile because it requires rspec 0.5.0 which is totally old.

I would just like to encode wav files to mp3s using ruby so if there are other alternatives, please do suggest some.

Was it helpful?

Solution

How about just running lame something like this?

def mp3_encode(wavefile)
    system("lame -V2 -f " + wavefile + " " + wavefile.gsub("wav", "mp3"))
end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top