This is not what you wanted but it may not be far off, if it controls Spotify through an API I don’t see why you couldn’t extend it to control a background process for local audio.
This is not what you wanted but it may not be far off, if it controls Spotify through an API I don’t see why you couldn’t extend it to control a background process for local audio.