C# 用于 MP3 编辑的音频库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/922644/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 03:17:15  来源:igfitidea点击:

Audio Libraries for MP3 editing

c#asp.netaudiomp3

提问by marcgg

In one o f my projects using ASP.NET + C# I want to be able to dynamically create 30 seconds clip of MP3 files and add a fade in/out.

在我使用 ASP.NET + C# 的项目之一中,我希望能够动态创建 30 秒的 MP3 文件剪辑并添加淡入/淡出。

What library would you recommend?

你会推荐什么图书馆?

I saw there are a lot, including:

我看到有很多,包括:

http://www.alvas.net/alvas.audio.aspx

http://www.audiosoundeditor.com/

http://www.mitov.com/html/audiolab.html

http://www.alvas.net/alvas.audio.aspx

http://www.audiosoundeditor.com/

http://www.mitov.com/html/audiolab.html

Have you ever had to deal this? What library worked the best for you?

你有没有遇到过这种情况?哪个库最适合你?

Anything will help including free/priced software that I could call from my C# application or any kind of C# compatible library.

任何东西都会有所帮助,包括我可以从我的 C# 应用程序或任何类型的 C# 兼容库调用的免费/定价软件。

采纳答案by marcgg

I ended up using ffmpeg

我最终使用了ffmpeg

回答by RG.

You can use winmm.dlllibrary.

你可以使用winmm.dll图书馆。

回答by Rick Ratayczak

There is a better option, that would be the BASS Library. http://un4seen.com/bass.htmlit has a dedicated forum and does DSP like fade/compressor/EQ, etc. Plus you can read a bunch of different audio formats. It has C# and vb.net support.

有一个更好的选择,那就是 BASS 库。http://un4seen.com/bass.html它有一个专门的论坛,可以做 DSP 之类的淡入淡出/压缩器/均衡器等。另外,您可以阅读大量不同的音频格式。它有 C# 和 vb.net 支持。

回答by Sebastian Gray

You could try NAudio- There would be a bit of programming required to do this but basically it would be along the lines of using NAudio to decode the MP3 first. Then passing the wave file to fade in (turn up the volume) at the time required and fade out (turn down the volume) when required. If your going to pass this to a client in a format other than wave you would then need to re-encode this file.

您可以尝试NAudio- 这样做需要一些编程,但基本上它会沿着使用 NAudio 首先解码 MP3 的路线。然后传递波形文件以在需要时淡入(调高音量)并在需要时淡出(调低音量)。如果您要以 wave 以外的格式将其传递给客户端,则您需要重新编码此文件。