any ruby wrapper for lame encoders out there that has good documentation?

317 views Asked by At

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.

1

There are 1 answers

3
Jonas Elfström On BEST ANSWER

How about just running lame something like this?

def mp3_encode(wavefile)
    system("lame -V2 -f " + wavefile + " " + wavefile.gsub("wav", "mp3"))
end