使用C#转换音频文件转换成MP3格式 [英] Convert Audio file into MP3 format using C#
问题描述
有没有什么办法对所有类型的音频文件转换成MP3格式。
在我的网站...我有一个控制,播放MP3文件的[音频]。但我必须提供方便上传任何类型的音频文件的[我正在开发的音频GALLARY]在我的网站上播放。
如果有更好的解决方案上传,并在网站上播放的音频文件使用asp.net 3.5开发
然后还请回复。
-
您可以使用 LAME 运行
您的应用程序之外(一个非常
良好的COM pressor),其的
例子是这里。这将工作
非常好,但你可能会得到
在Web服务器与它的问题。它
最好的办法是把主机换一个服务
这个动作,并在页面后
项目队列。 -
或者你也可以使用一个
许多图书馆已经
存在,像这一个
例。这仍然运行LAME,但它使用的DLL来代替。
is there any way to convert all type of audio files into MP3 format. in my website... i have one control which plays MP3 files[audio]. but i have to provide facility to upload any kind of audio file[as i am developing audio gallary] and play it in my website..
if there is better solution to upload and play audio files in the website developed using asp.net 3.5 then also please reply.
You can either use LAME to run outside of your application (a very good compressor), for which an example is here. This will work very well, but you might get problems with it on a webserver. It would be best to host a service for this action, and have the page post items to a queue.
Or you can use one of the many libraries that already exist, like this one for example. This still runs LAME, but it uses the DLL instead.
这篇关于使用C#转换音频文件转换成MP3格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!