Roon Extension: AI Guest DJ | Open AI for Roon

Awesome! Can’t wait for the Roon API to properly support playlists. That would open up so many new chances, like synchronizing Spotify Playlists with Roon.

v.1.0.49. Roon v2 (build 1401). prompt: “uptempo pop music”.
I get the following error message:

Error
Track Items are malformed
Stack Trace
settle@http://192.168.1.xxx:9021/_next/static/chunks/319-5070fa556965c43c.js:36733:31
onloadend@http://192.168.1.xxx:9021/_next/static/chunks/319-5070fa556965c43c.js:37089:13
@http://192.168.1.xxx:9021/_next/static/chunks/319-5070fa556965c43c.js:37650:58

Docker Log:

▲ Next.js 14.2.0-canary.49

  • Local: http://localhost:9010
  • Network: http://0.0.0.0:9010
    ✓ Starting…
    ✓ Ready in 1330ms
    (node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    (Use node --trace-deprecation ... to show where the warning was created)

You’re getting this error message if no tracks were generated with the prompt. Do no prompts work at all? And are your getting this error with GPT-4?

What you could do to debug this issue is opening the network panel in Chrome. Here you will see two request: 1 which is a local request where the OpenAI prompt is processed, and 1 that is send to AI Guest DJ to store the playlist. See screenshot attached.

My first guess is that the OpenAI call didn’t return any results. That can be a hick-up or a wrong configuration.


I just tested “uptempo pop music” again and I get a result now (with and without GPT4) – so I guess it works now!

Unfortunately, most tracks are not found (no streaming service enabled)… is it possible to feed my database track list to GPT4 and use it for the playlist creation?

Yeah, I notice the same thing also. I’m working on an improved matching of tracks with local files. I noticed while syncing Spotify playlists that even though I do have some local tracks it doesn’t always match correctly.

Anyway, no solution for now. But when there is an update I will post it here!

1 Like