I've been meaning to take a look at Spotify through Home Assistant and what that is capable of (and potentially voice controlling it)
But, if you wanted to write some python to directly play some pre-defined playlists (it currently can't do open speech transcription), you could definitely make that happen with Home Intent!
It supports custom components, so any integration is technically possible: https://homeintent.io/reference/developer/example-component/
I tried to design the interface to be easy to understand what sentences trigger what functions, and not have to write a lot of boiler code.
Hope this helps!