我应该使用哪种音频编解码器?

发布于 2024-08-23 08:50:58 字数 253 浏览 13 评论 0原文

我应该为我的 C# 软件开发项目选择哪种音频编解码器,其中要转码/传输/使用的原始音频基于以下内容:

  1. 仅用于编码 语音
  2. 音频可以是立体声或单声道
  3. 能够支持实时流媒体 文件
  4. 大小和文件大小之间的良好权衡质量
  5. 以编码形式通过 TCP/IP 传输
  6. 可以由现成的免费播放器播放,无需进一步处理

请注意,不需要考虑是否有现成的免费编解码器库用于执行转码。

Which audio codec should I choose for my C# software development project where the raw audio to be transcoded/transported/used is based on the following:

  1. For encoding Speech only
  2. Audio can be stereo or mono
  3. Able to support live streaming
  4. Good tradeoff between file size and quality
  5. To be transported over TCP/IP in its encoded form
  6. Can be played back by a readily available free player without further processing

Note that whether there is a readily available free codec library for performing transcoding does not need to be taken into consideration.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

禾厶谷欠 2024-08-30 08:50:58

更新、更好的替代方案是 Opus 编解码器

查看与其他编解码器的比较,看看它的性能如何。

A more recent and better alternative would be the Opus Codec.

Check out the comparison with other codecs to see how well it performs.

一江春梦 2024-08-30 08:50:58

Speex 是免费的开源编解码器,专为需要低延迟的实时解决方案中的语音编码而设计。 WMA 或 MP3 等通用压缩方案可能会导致更多延迟,并且它们也可能无法在非常低的比特率下良好运行。 http://www.speex.org/

Speex is free open-source codec, designed for encoding speech in realtime solutions that need low latency. General-purpose compression schemes such as WMA or MP3 are likely to cause more delay and they also may not be able to operate well at very low bitrates. http://www.speex.org/

哎呦我呸! 2024-08-30 08:50:58

您可以使用 LAME 进行带有“语音”预设的 MP3 编码。不过,我建议测试不同的,因为这样的问题

KPFA.org(我想现在是 KQED)都使用 MP3 进行直播。效果很好。但不知道使用什么服务器软件。

You could use LAME for MP3 encoding with the 'voice' presets. I would recommend testing different ones though, because of issues like this.

MP3 is what KPFA.org (and now KQED, I think) both use for live streaming. Works great. Don't know what server sw is used though.

东风软 2024-08-30 08:50:58

鉴于您选择的语言,如果可以安全地假设您使用的是 Windows,我实际上会推荐 WMA(Windows 格式)。这些库都将内置,并且综合考虑,它是一个非常可靠的编解码器。支持您的所有要求以及更多。

但是,如果您要推送到 Flash 端点,请使用 .fla、Flash Audio。 Flash 确实针对这一点进行了优化,虽然与 C# 一起使用并不那么容易,但您肯定会欣赏另一端的易用性。

Given your choice of Language, if it is safe to assume that you are using Windows, I would actually recommend WMA, the Windows Format. The libraries are all going to be built in, and, all things considered, is a very solid codec. Supports all your requirements and more.

However, if you're going to be pushing to a flash endpoint, use .fla, Flash Audio. Flash definitely optimizes for consuming this and, while it's not quite as easy to use with C#, you'll definitely appreciate the ease of consumption on the other end.

白色秋天 2024-08-30 08:50:58

如果您仅针对 Windows,那么 GSM 编解码器可能是低带宽应用程序的不错选择。人们普遍认为它的质量低于 Speex,但使用的带宽也少得多。

Windows Media Player 可以播放 GSM,编码器是 Vista 及更高版本中 Media Foundation 的一部分(XP 及更低版本中可能还有一些 Win32 API?)

If you're only targeting Windows, GSM codec is probably a good choice for low bandwidth applications. It is generally considered to be lower quality than Speex but uses a fair amount less bandwidth as well.

Windows Media Player can playback GSM and the encoder is part of Media Foundation in Vista and above (and presumably some Win32 API in XP and below?)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文