Relative Content

Tag Archive for node.jsangularbase64wavopus

Distorted audio output when converting chunks starting with “data:audio/webm;codecs=opus;base64” to WAV format

I am working on a Node.js application where I need to convert audio data, received in chunks, into a WAV format. The audio data consists of an array of strings, with each string representing a chunk of audio data. The conversion works fine for most chunks, but I encounter distortion specifically for chunks that start with “data:audio/webm;codecs=opus;base64”. I am using a function that handles the conversion, but the output for these chunks is not as expected, resulting in distorted audio.