2

I made a code that creates a pcm file out of a stream and saves it after the stream ended. I need to convert this .pcm file into a .wav or any other audio file if possible. Is there some kind of npm package that would help me out on this problem?

Jiron
  • 51
  • 4
  • Please be aware that asking for packages, tools, or libraries if ott-topic. That said: you probably need to use an audio conversion tool, like ffmpeg? – evolutionxbox Mar 16 '21 at 11:55

1 Answers1

1

There is a simple audiobuffer-to-wav npm. You could look into using that.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Fluxpuck
  • 131
  • 1
  • 9
  • Please may you flag the question as off topic? – evolutionxbox Mar 16 '21 at 14:08
  • i have buffer, can i directly convert and save to wav? if u can help on that https://stackoverflow.com/questions/73373344/0xc00d36c4-while-saving-file-to-wav-format-nodejs-amazon-polly-text-to-speech – Sunil Garg Aug 17 '22 at 08:21