Audio stream to max with node.js
I'm using Node.js within Max8 to convert text to speech via AWS. I'd like to output the audio stream to a Max MSP object without piping it to the computer's core audio. Is this possible? What object and what stream format could accomplish this?
Hey Sam,
node.script currently has no support to pipe audio streams in or out of node. So the best way to approach your problem would be to download the audio file to a temporary location on disk, outlet the filename/path and use that from within Max to Play back the file.
Hope that helps.
Florian
Florian,
Thanks for your quick reply, you've saved me a lot of time trying to research this further. Our ultimate goal was to get a live feed of Tweets (audio) streamed in to Live to be mixed with other effects, music, etc.... I ended up piping the audio stream in node.js to the core audio (within a Max patch), but then using some third party software to loop that stream back to Live as a different input.
https://rogueamoeba.com/loopback/
Your suggestion sounds promising as well and that was going to be my next strategy if my partner hadn't been able to get the loopback working. I'll probably end up doing it that way later though to remove the dependency of the third party software.
Hi Sam,
Please contact me with how you did this, I'm trying to accomplish the same thing. jcclearsplash85@gmail.com
I wish to stream radio into my Max patch, so this isn't possible yet?
@florian does node.script still not support to pipe audio streams out of node to max? I´m also looking for such a feature and you would make me so happy if there would be a way so solve that issue :-)