开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜