Richienb / audic

Play some audio.
MIT License
68 stars 9 forks source link

Directly read node-fetch returned binary buffer that's obtained from a remote audio file #17

Open kqvanity opened 2 years ago

kqvanity commented 2 years ago

I'm attempting to fetch an audio file from a remote server, then directly run this audio file without having an intermediary file writing then reading process. I was wondering if the binary data could be piped directly to audic from within the main memory, rather than writing to disk, as the file size is negligible and it's less messier and streamlined this way.

nelsonjchen commented 1 year ago

It'll be great for removing the dependency on having a loop-backed VLC as well. Causes an ugly Firewall prompt on Windows.

kqvanity commented 1 year ago

I guess this project is no longer maintained. I also suspect that such a thing is generic enough to be looked for elsewhere. I'm find with close the issue, if you think the same too!

a loop-backed VLC

I did manage to play it, but with other project subshelling to media player binaries (CLI ones), however I wasn't that all for such a dependency. Still, I'm not even sure that nodeJs is capable of decoding/encoding binary data itself in the first place

nelsonjchen commented 1 year ago

People decode encode binary data all the time in nodejs.

I think it's fine to leave this issue open. If there's ever a successor, and they want to look at existing issues with older libraries, you want them to see this issue.

kqvanity commented 1 year ago

People decode encode binary data all the time in nodejs.

I was speaking of the fact that it's more than merely encoding and decoding chunks of data. Audio files usually come in many formats and thus require many different codecs and I assume additional complexities

I think it's fine to leave this issue open.

Alright