开发者

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

开发者 https://www.devze.com 2023-02-07 00:13 出处:网络
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

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

精彩评论

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