@Marcos-Martinez-Debelluit, this is one method. I used the SoundVolumeView.exe tool from Nirsoft.

SoundVolumeView.exe /SetDefault "Realtek*\Device\Speakers\Render" all SoundVolumeView.exe /SetDefault "*USB Audio Device\Device\Speakers\Render" all

If I run the above commands while Spotify was playing a tune, it switches my computer's audio output from between my "3- USB Audio Device" (usb headphones) and "Realtek High Definition Audio" (speakers).

Notice I shortened the device names that the GUI showed me using the * wildcard.


I have Spotify set to "This Computer".