-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReadableStream or Readable from AudioContext #27
Comments
Hey,
But for your use case, you could probably use an If you think there should a more precise example, happy if you propose one or I can add one too, let me know |
Thank you for your quick response! While this solves my issue somewhat i run into a different issue now. the soundbot acts like a web radio in that it isn't really supposed to stop. music tracks are faded into each other in one continuous stream of music. using a single audiobuffer for it all isn't feasible for me. would it be possible to expose a ReadableSteam so i can process data in real time and not bloat memory? the discord bot is running in several servers at the same time too, acting as a broadcast and listeners can be added and removed at any point in time. could you give me an example for how i could achieve this? please excuse the terrible formatting i'm on a trip and writing this from my phone. |
Hum I see, the offline context is hardly a solution in that case indeed. I have made some little research and unfortunately the Maybe a possible solution for you would be to use an online context to do the audio processing (cross-fades etc.), and rely on an external solution such as Icecast to create the broadcast stream(s)? This would make your server architecture a bit more complex but it should probably work. |
I want to stream the resulting audio post processing to discord for a sound bot.
So far i have not found a way to get binary data from the AudioContext object, raw, encoded or otherwise.
In the examples directory I couldn't find any examples of exporting the audio to a file or a stream and while debugging i couldn't find a method to do so either.
I tried using
createMediaStreamDestination
, like documented on MDN but that method doesn't seem to exist on AudioContext.Can someone help me please?
I would love to use this module in my project.
The text was updated successfully, but these errors were encountered: