I am streaming an arrayBuffer to convert to an audioBuffer in order to be able to listen to it.
I am receiving a stream via a websocket event
retrieveAudioStream(){
this.socket.on('stream', (buffer) => {
console.log('buffer', buffer)
})
}
the buffer
is an arrayBuffer and I need it to be an audioBuffer
in order to be able to listen to it on my application.
How can I do this?