Turning a Raspberry Pi into a WiFi powered speaker that can play media from Jellyfin

Hey all,

New to the forums but somewhat experienced with HA.
I’ve been trying to find a decent solution for this:

When I go to sleep I would like a Pi I have hooked up to a speaker to play a podcast or some music from my Jellyfin library, either works. Specificially, I would want to do this from an automation so I can activate it along with my sleep lights, and turn it off after 15 minutes.

Any idea for what I should run on the Pi to be able to control/start media playback from HA? Again, either a podcast or a song from my Jellyfin music library (hosted on the same network) would work.

Cheers