Flash/Flex 中 Speex 编解码器的 API

发布于 2024-08-29 03:09:27 字数 90 浏览 12 评论 0原文

通过 AIR 2 允许访问麦克风数据,可以在本地保存/处理音频。 Adobe 提供了 WAVWriter 示例,但是否有任何 API 可以访问 Speex 编解码器?

With AIR 2 allowing access to mic data, it's possible to save/process audio locally. Adobe provides a WAVWriter example but is there any API access to the Speex codec?

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

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

发布评论

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

评论(1

放我走吧 2024-09-05 03:09:27

据我了解,音频在内存中是完全解压缩的,但在通过 NetStream 发送时会自动本地压缩。据我所知,没有公开 API 来使用本机压缩器。目前,AS3 或 Haxe 中还没有用于 speex 压缩器的端口。所以我想你唯一的选择是:

  1. 使用WAV
  2. 端口和AS3编码器(例如JSpeex
  3. 使用为您完成工作的外部工具。我不确定Air内部浏览器是否支持Java小程序。如果是这样,您可以编写一个小程序,使用 JSpeex 进行所需的转换。如果您需要文件系统访问,或绑定端口(用于连接air运行时),您将需要 签署您的小程序

From what I understand, audio is completely decompressed while in memory, but is automatically compressed natively when sent through a NetStream. As far as I know, no API is exposed to use the native compressor. Currently, there's also no port for the speex compressor in AS3 or Haxe. So I guess your only options are to:

  1. live with WAV
  2. port and encoder to AS3 (for example JSpeex)
  3. use an external tool to do the work for you. I am not sure whether the Air internal browser support Java applets. If it did, you could write an applet, that uses JSpeex to do the desired conversion. If you need file system access, or to bind ports (for the air runtime to connect to), you will need to sign your applet.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文