MyRobotLab / myrobotlab

Open Source Java Framework for Robotics and Creative Machine Control
Apache License 2.0
230 stars 109 forks source link

AudioFile service play actual stream #1250

Closed supertick closed 1 year ago

supertick commented 1 year ago

Currently the AudioFile service downloads any internet sound file and will cache and play it. However, this will not work with audio streams. An example http://direct.fipradio.fr/live/fip-midfi.mp3 from lecagnois In this case, the read buffer of Http service should go directly to the audioFile in a new stream thread.

hairygael commented 1 year ago

There is another way to stream radio, is to use the oob tags in the AIML files if required.

supertick commented 1 year ago

how ? ... is python streaming a real stream or is it downloading a file and playing ?

hairygael commented 1 year ago

It's directly the browser that streams. The aiml use webgui service to startBrowser with the link of the radio and that's it. The only pb is that webgui service doesn't seem to have stopBrowser. I have put a gif on discord showing it.

hairygael commented 1 year ago

https://discord.com/channels/887362610360643664/1009121322133098518/1070412325795930182

supertick commented 1 year ago

handling all different streams from the web is non trivial .. perhaps a BDD ticket for VLC