什么音频格式适用于 Silverlight +世界和平基金会?

发布于 2024-09-07 16:39:44 字数 656 浏览 3 评论 0原文

我正在编写一对用于分发音频(以及其他功能)的应用程序。我有一个 WPF 程序,允许艺术家录制和编辑音频。单击按钮然后将其上传到 silverlight 支持的网站。访问该网站的消费者可以收听音频。简单的。有用。但我希望它变得更好:我需要一种在录制和播放方面都能无缝工作的音频格式。

我目前使用的是 mp3 格式,但我对此并不满意。对于录音/编辑,我使用 Alvas Audio c# 库。它工作正常,但对于 MP3 录制,要求艺术家进入他的注册表将 msacm.l3acm 更改为 l3codecp.acm。这对最终用户来说有很多要求。此外,当我安装在新机器上时,mp3 录音似乎相当脆弱。 (有时它会随机地不起作用,直到你摆弄了一段时间。我仍然不知道为什么。)有人告诉我,除非我想向 mp3 专利持有者支付版税,否则我总是需要依赖于这种类型的注册表更改。

那么我可以使用什么其他音频格式来代替呢?我需要一些压缩的东西。例如,Alvas 音频还可以录制到 GSM,但无法在 silverlight 中播放。 Silverlight 可以播放 WMA,但我不知道如何以该格式录制 - Alvas Audio 不会。我愿意使用另一个录音库,但我还没有找到一个。

我是否遗漏了一些明显的东西,或者确实没有用户友好的方式在 WPF 中录制音频并在 Silverlight 中播放?似乎应该有...

任何建议都非常感激。

谢谢。

I'm writing a pair of applications for distributing audio (among other features). I have a WPF program that allows an artist to record and edit audio. Clicking a button then uploads this to a silverlight-powered website. A consumer visiting this website can then listen to the audio. Simple. It works. But I'd like it to be better: I need an audio format that works seamlessly on both the recording and playback sides.

I'm currently using mp3 format, and I'm not happy with it. For the recording/editing, I use the Alvas Audio c# library. It works ok, but for MP3 recording requires that the artist goes into his registry to change msacm.l3acm to l3codecp.acm. That's a lot to ask of an end-user. Furthermore mp3 recording seems rather fragile when I install on a new machine. (Sometimes it randomly just doesn't work until you've fiddled around for a while. I still don't know why.) I've been told that unless I want to pay royalties to the mp3 patent holders, I always need to rely on this type of registry change.

So what other audio format could I use instead? I need something compressed. Alvas audio can also record to GSM, for example, but that won't play back in silverlight. Silverlight will play WMA, but I don't know how to record in that format - Alvas Audio won't. I'd be open to using another recording library instead, but I haven't managed to find one.

Am I missing something obvious, or is there really no user-friendly way to record audio in WPF and play it back in Silverlight? It seems like there should be...

Any suggestions greatly appreciated.

Thanks.

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

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

发布评论

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

评论(2

你曾走过我的故事 2024-09-14 16:39:49

鉴于 Ogg Vorbis 在某些浏览器中被用于新的 HTML 音频标签(咳),它可能值得 检查一下。如果您遵循此路线,您将不会遇到任何许可问题。如果您最看重的是易于部署,那么请选择 WMA。

[尽量不要开始抱怨浏览器中编解码器选项的碎片化状态以及破坏任何共识的商业利益]

Given that Ogg Vorbis is being adopted for the new HTML audio tag in (cough) some browsers, it's probably worth checking it out. You won't get bitten by any licensing concerns if you follow this route. If ease of deployment is top of your list, then go with WMA.

[tries hard not to start ranting about fragmented state of codec options in browsers and the commercial interests that scupper any concensus]

尐偏执 2024-09-14 16:39:48

IMO,WMA 将是您最好的选择。我不确定您的应用程序是如何设置的,或者您想要达到多低的级别,但 Windows Media Format SDK 是编码 WMA 的好方法,并且 Windows 附带了运行时。这里有 .NET PIA 和示例:http://windowsmedianet.sourceforge.net/

IMO, WMA would be your best bet. I'm not sure how your application is setup or how low level you want to go, but the Windows Media Format SDK is a great way to encode WMA and the runtimes come with Windows. There are .NET PIAs and samples for it here: http://windowsmedianet.sourceforge.net/

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