On my iOS devices I have three types of files/songs in the Music Library:
1: Regular files m4a/mp3 files ripped from a CD or audio files added to iTunes.
2: Files purchased from iTunes Store about 10 years ago, they are DRM protected .m4p files.
Those are physical files that are synched from iTunes on my Mac over to the iOS device.
3: Streaming "Apple Music" songs.
All three types can be played with "MPMusicPlayerController applicationMusicPlayer".
With "type 1" files, changing the speed with currentPlaybackRate works.
With "type 3" files, currentPlaybackRate does not work.
With "type 2" files, currentPlaybackRate works for some of the files but not for all.
I believe I "own" all type 2 files (I did pay for them) but Apple thinks not.
So checking if a file is DRM protected or not, doesn't tell us if speed change is possible.
If speed change isn't going to be possible we at least need to be able to disable the speed change control.
As of now there is no reliable way way to find out if speed change will be possible or not.