AI Radio: A way to inject radio-like sections to your MA playlists #4930
swiftbird07
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
|
Nice work! It would be really nice if we could turn it into a Music Assistant plugin? That would allow people to just add it to MA without any extra steps. For example, someone is working on party mode that you could use as inspiration on how to inject queue items from within a plugin. Of course we are here to assist in case you have questions or need help 🙏 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
just thought it would be fun to share the project I worked on over the weekend.
It is a python toolchain that enables me to define a specific MA playlist and the tool will generate the text and respective TTS mp3 files and insert them into a new playlist making it more like a radio like experience with weather reports, song intro and outros, news etc.
Using config files I can define what playlist to use, what the prompts are for each section and under what circumstances I want to add what section at which position.
I also recently added support for a "dynamic generation" mode where the tool doesn't create any new playlist but just add them to the current player queue one after another (mainly to save costs on the OpenAI billing 😅).
As said this currently works as a standalone script chain and is not integrated directly into MA as a plugin or something - mainly because I didn't research yet if and how this is possible. If there is interest I may consider doing more research in that regard.
I hope you find this project interesting. At least for me it's very funny to have my own personal radio station now commenting on my songs, giving me fun facts about artists etc. (and most importantly there are no annoying AD breaks!).
Thanks to the Music Assistant developers for making such a nice platform (and the SDK/API that goes with it) otherwise it would have been way harder to develop a tool like this!
Link: https://github.com/swiftbird07/AI-Radio
If you have any questions or feedback just ask :)
Beta Was this translation helpful? Give feedback.
All reactions