以编程方式将Speex文件转换为MP3? [英] Convert Speex files to MP3, programatically?

查看:553
本文介绍了以编程方式将Speex文件转换为MP3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在某种允许我将speex文件转换为mp3文件的库?如果可以通过php进行操作,那会更好,但实际上任何事情都可能起作用.

Is is there some sort of library that would allow me to convert a speex file to an mp3 file? If it were do-able from php that would be even better, but really anything would probably work.

推荐答案

如果您有 gstreamer 您的平台,只要您安装了正确的编解码器,它就可以为您完成.

If you have gstreamer available on your platform, it can do it for you provided you have the proper codecs installed.

http://forums.fedoraforum.org/showthread.php?t= 61984 我发现这段代码可以将wma转换为mp3,您应该可以根据自己的需要制作类似的代码:

On http://forums.fedoraforum.org/showthread.php?t=61984 I found this piece of code for wma to mp3 conversion, you should be able to craft something similar for your needs:

gst-launch filesrc location=filename.wma ! spider ! lame ! filesink location=filename.mp3

这篇关于以编程方式将Speex文件转换为MP3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆