I finally found a new way to get Alexa to play specific music from my own local server by voice command (play title, play album, play artist, play genre, play title by artist). I used to be able to do this with the Plex skill by running a local Plex server, although it was always a bit unreliable. But Plex shut down their Alexa skill in June this year, and I've had to get used to playing everything from Spotify, even when I have it on my own local server.
I recently tried creating a few of my own custom Alexa skills using Amazon Lambda to meet a couple of needs. It's a bit complicated, but these days AI assistants like ChatGPT can walk you through it fairly quickly. I wondered if I could create my own skill to talk to Plex, which would mean figuring out the Plex api. Then I discovered an even easier path: I can use Music Assistant on my Home Assistant server instead of Plex. Music Assistant does pretty much what Plex does for music, but it's more focused on music rather than video, and it's more fully integrated with Home Assistant, so the api is easier to implement and debug.
ChatGPT helped me create a custom "My Player" Alexa skill to accept voice commands for play title, play album, play artist, play genre, play title by artist and pass those to my Home Assistant server. I use Node Red to receive the Alexa command. The Node Red flow then calls Music Assistant to perform the requested search on the terms passed from Alexa, tells Alexa whether the requested item was found or not, and if found it requests Music Assistant to play it on the target speakers. I can select the target speakers with a separate command - normally my Sonos system.
It works pretty well, although it has the usual limitations, like having no easy way to specify by voice which version of the song you want if there are multiple versions by the same artist with the same title (like live vs. studio, or original vs. acoustic). But Music Assistant isn't as picky in its searches as Plex, and at least it doesn't do Spotify's annoying trick of giving you some really obscure version when you request a popular title rather than the iconic one. It's noticeably faster responding than streaming services.