If we want to decode raw opus packet to PCM in our browsers, there are two ways to do that: Using libopus decoder of javascript version that can be ported using Emscripten. Using the Web Audio API ...