.NET 最好的音频压缩库是什么?
我正在寻找一个好的 .NET 音频压缩库。 任何使用 MP3 的东西都已经过时了(因为许可问题)。 基本上我只需要能够将常规 WAV 音频数据压缩为某种格式,然后解压缩回 WAV。 最好代码全部是 .NET(C# 或 VB.NET),但我认为这不太可能。 它应该是无损的或相对无损的(最好是 192 MP3),压缩比至少为 4:1。 我更喜欢基于缓冲区的 API,但基于文件的 API 也可以。
有谁知道这样的事情吗?
I'm looking for a good audio compression library for .NET. Anything using MP3 is out (because of the licensing issue). Basically I just need to be able to compress regular WAV audio data into some format, and decompress back to WAV. Preferably the code would be all .NET (C# or VB.NET), but I don't think this is likely. It should either be lossless or relatively lossless (as good as 192 MP3s, preferably), with a compression ratio at least as good as 4:1. I'd prefer a buffer-based API, but a file-based API is OK too.
Does anyone know of anything like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您考虑过使用 WMA 吗? 如果您使用托管 C++ 或 C++/CLI,则可以很轻松地围绕 Windows Media Format SDK 编写托管包装器。 然后,更高级别的 VB.Net 或 C# 程序集可以轻松使用该程序集。 只要您安装了 WMP,它甚至还具有不需要任何额外依赖项的优点。
Have you thought about using WMA? If you use managed C++ or C++/CLI it's very easy to write a managed wrapper around the Windows Media Format SDK. This assembly can then be easily used by a higher level VB.Net or C# assembly. As long as you have WMP installed it even has the advantage of not requiring any additional dependencies.
您考虑过 .OGG 格式吗? 我不知道 .net 库是否可用,但 libogg 和 libvorbis C 库并不是火箭科学,也没有经过充分测试。 对于简单的压缩/解压缩作业,您可以使用处理所有细节的两个函数包装器。
围绕它们编写 .net 包装器应该很容易。
优点:
You've thought about the .OGG format yet? I don't know if a .net library is available, but the libogg and libvorbis C libs aren't rocket-science and well tested. For a simple compress/decompress job you may get away with a two function wrapper that handles all the details.
It should be easy to write a .net wrapper around them.
Benefits:
FLAC 看起来很有趣。
FLAC looks interesting.
Monkey's Audio 是另一个(它甚至可以在 .NET 中工作)。
Monkey's Audio is another one (it might even work in .NET).
您可能会研究 OGG 编解码器。 我不确定是否有任何用 .NET 编写的,但它是开源的,所以如果这对您很重要,您应该能够很容易地移植一个。
OGG Vorbis 编解码器
You might look into OGG codecs. I'm not sure if there are any written in .NET, but it's open source, so if this is important to you, you should be able to to port one easily enough.
OGG Vorbis codec
看看FMod。 具有良好的音频压缩、播放以及3D效果功能。 它支持很多音频格式。 它是用 C 编写的,但有一个很好的 C# 包装器。
[[http://www.fmod.org/]]
Have a look at FMod. Is has good audio compression, playing, as well as 3d effects features. It supports lots of audio formats. It is written in C but has a good C# wrapper along with it.
[[http://www.fmod.org/]]