Windows 11/10 allows PC users to listen to a portable music player or other device connected to the microphone jack through a selected playback device such as your computer speakers or headphone.
But if you have a paid Spotify Premium account, you can listen to those local ... To play local music files using the Spotify app on your computer, you'll need to enable local files in Settings.