简体   繁体   English

如何使用 node.js 将 a.pcm 文件转换为 wav 文件?

[英]How do I convert a .pcm file into a wav file with node.js?

I made a code that creates a pcm file out of a stream and saves it after the stream ended.我编写了一个代码,从 stream 创建一个 pcm 文件,并在 stream 结束后保存它。 I need to convert this.pcm file into a.wav or any other audio file if possible.如果可能,我需要将此.pcm 文件转换为.wav 或任何其他音频文件。 Is there some kind of npm package that would help me out on this problem?是否有某种 npm package 可以帮助我解决这个问题?

There is a simple audiobuffer-to-wav npm.有一个简单的 audiobuffer-to-wav npm。 You could look into using that.你可以考虑使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM