Is this a new API that can be used to create a 3rd party audio input directly in Roon ie. a Spotify (Librespot) or AirPlay (Shairport) sink, without having to setup a pseudo radio station?
It looks like someone has already tried to build a Spotify (Librespot) relay using this API?
As far as I can see from the sources there is a âplayâ method that garbs the audio content from a URL and stream this to Roon.
This means you still need a webserver that delivers the audio stream but you donât have to set up a radio station for the audio stream manually any more.
Triggered by this topic I ran the âRoon Connect Stream Exampleâ again but now against production server build 1357. There is no longer a NotCompatible error and help can be requested. Havenât tried more than this (yet).
$ node test.mjs
Enter command (? for help) > ?
Commands:
help, ?
print help
exit, quit, bye, ^C
exit
play <stream>
play the stream in roon -- must be one of the Roon-supported stream formats
stop
stop playback and release the zone back to Roon
vol up|down|<number>
change the volume up or down, or set it to a specific number
Looks like you can set an icon for the input source too
(obv. still need an external application to send / relay audio to it, but far better than the current clunky workaround of having to setup a pseudo radio station)
If Iâm back from South East Asia in April I will add that to rooPlay. With this the users donât have to manually add a Radio station to make it run
Based on the screenshot @j_a_m_i_e posted, the icon is shown left from the zone icon (the puppy with the âMY BRANDâ text). An image url can be set in the object passed to the play method.
node-roon-api-audioinput also has an update_track_info method, suggesting that the metadata shown can be updated at track transition.
I havenât done any additional testing as @j_a_m_i_e reported that it works in the post after mine. Also because I do not have plans to make use of the audio input service.
I will figure it out when Iâm back from traveling end of April. Plan to implement it in rooPlay so the manual configuration of the rooPlay radio station can be omitted in future.