This is a simple node module for connecting to a PlainTransport and encoding/decoding Opus packets to/from PCM. It’s particularly helpful if you’re integrating with an AI model like a chatbot or transcription model, but it can be used for anything.
I’ve been using this in production for a while. Recently, I figured I’d clean it up and publish it. Let me know if you find this useful or have any feedback.
It depends on ffmpeg and libopus.