Rantanen / node-opus

Opus bindings for Node.js
MIT License
79 stars 32 forks source link

How to deal with 16-bit vs 8-bit audio and frame_size may be incorrectly named #98

Closed anshul-kai closed 4 years ago

anshul-kai commented 4 years ago

Firstly, thanks for this library. I'm encountering some issues, particularly with 16-bit audio. The examples and documentation don't specify how to deal with each case. Also, a single frame of stereo 16-bit audio is 4 bytes long but in your documentation, you are using a frame_size of 480. Is that supposed to be the number of samples to process?

Rantanen commented 4 years ago

I'm archiving the repository for lack of interest in maintaining it. Sorry I never got to deal with this issue. Please see @discordjs/opus for an alternative implementation that is based this project but uses more stable Node.js module technology that should break less between Node.js versions.