Audio stream to max with node.js


    Oct 10 2018 | 11:02 pm
    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?

    • Oct 11 2018 | 12:23 am
      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
    • Oct 11 2018 | 3:40 am
      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.
    • Apr 13 2020 | 6:05 am
      Hi Sam, Please contact me with how you did this, I'm trying to accomplish the same thing. jcclearsplash85@gmail.com
    • Oct 14 2021 | 4:33 am
      I wish to stream radio into my Max patch, so this isn't possible yet?