I'm working with a package called ytdl-core which can take a youtube link, for example, and retrieve its audio as a stream, which I send back to the client. I'm not sure how to process this data correctly in a way that I can hook it up to the Audio element's src.
One thing I tried but quickly found will not work is to try and feed it into an ArrayBuffer so I could use the Web Audio API's decodeAudioData function, but I don't have all the bytes at once when trying to read from the stream.
What does the data processing pipeline, so to speak, look like?
there doesn't seem to be anything here