As I understand it, you cannot use the offline functionality of Spotify. To be able to listen to music while swimming, you need to have audio files in .mp3 or .m4a format, for example, and copy them from the PC to the headphones as you would to a USB stick.