【问题标题】:Decoding Opus audio data file to raw data file Node JS将 Opus 音频数据文件解码为原始数据文件 Node JS
【发布时间】:2019-07-18 01:13:33
【问题描述】:

我正在尝试将 Opus 文件解码回原始数据文件,我应该使用哪个库。

【问题讨论】:

  • 你可以看看 node-opus .. npmjs.com/package/node-opus
  • 我尝试使用这个库但它不起作用或者我无法理解如何使用
  • 它是一个 npm 模块,使用如下:从 git 源代码克隆它:github.com/Rantanen/node-opus .. cd 到项目的根目录.. 使用“npm install”安装它..使用“npm run test”运行测试......然后开始深入了解细节......
  • @RobertRowntree 它不能按我的意愿工作

标签: javascript node.js opus raw-data


【解决方案1】:

使用opus-stream-decoder。请参阅 test-opus-stream-decoder.js 文件中的 NodeJS 示例:

【讨论】:

    【解决方案2】:

    你可以试试这个node js lib node js opus

    【讨论】:

    • 查看github上的描述
    • 我建议不要使用这个库,因为它使用阻塞 i/o 进行解码。
    • @anthumchris 是的,由于阻塞同步调用,这将导致大文件或多个文件出现问题
    猜你喜欢
    • 2014-10-01
    • 2013-05-05
    • 2020-01-01
    • 2017-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-28
    • 2020-04-29
    相关资源
    最近更新 更多