any ruby wrapper for lame encoders out there that has good documentation?
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 wa开发者_Python百科v files to mp3s using ruby so if there are other alternatives, please do suggest some.
How about just running lame something like this?
def mp3_encode(wavefile)
system("lame -V2 -f " + wavefile + " " + wavefile.gsub("wav", "mp3"))
end
精彩评论