I get a SpotifySkill | Unable to get a default device while trying to play something.
I followed the instructions and it went well (as far as I could tell).
I installed raspotify and saved my username and password in the configuration file along with the device name saved on mycroft.ai.
(note: the instructions say to edit /etc/default/raspotify.conf but by me, it was /etc/default/raspotify)
I did change User and Group to pi.
I also executed the auth.py and gave the credentials from the Spotify Developper App page.
Finally, I did add the credentials from my premium account on mycroft.ai.
Expected behavior
Music starts playing.
Log files
08:22:52.792 | INFO | 747 | Playback Control Skill | Resolving Player for: S3 from Niro
08:22:57.007 | INFO | 747 | SpotifySkill | Handling "S3 from Niro" as a genric query...
08:22:57.007 | INFO | 747 | SpotifySkill | Checking users playlists
08:22:57.132 | INFO | 747 | SpotifySkill | Checking artists
08:22:57.260 | INFO | 747 | SpotifySkill | Checking tracks
08:22:57.419 | INFO | 747 | SpotifySkill | Checking albums
08:22:57.516 | INFO | 747 | SpotifySkill | Checking tracks
08:22:57.913 | INFO | 747 | Playback Control Skill | No matches
08:23:19.301 | INFO | 747 | Playback Control Skill | Resolving Player for: thriller from michael jackson
08:23:20.908 | INFO | 747 | SpotifySkill | Handling "thriller from michael jackson" as a genric query...
08:23:20.908 | INFO | 747 | SpotifySkill | Checking users playlists
08:23:20.909 | INFO | 747 | SpotifySkill | Checking artists
08:23:21.041 | INFO | 747 | SpotifySkill | Checking tracks
08:23:21.581 | INFO | 747 | SpotifySkill | Checking albums
08:23:21.705 | INFO | 747 | SpotifySkill | Checking tracks
08:23:21.950 | INFO | 747 | SpotifySkill | Spotify confidence: 0.5842696629213483
~~~~jKrsxVxwui8LYFL'}], 'limit': 10, 'next': None, 'offset': 0, 'previous': None, 'total': 3}}, 'name': None, 'type': 'track'}
08:23:25.453 | INFO | 747 | Playback Control Skill | Playing with: mycroft-spotify.forslund
08:23:25.578 | INFO | 747 | Playback Control Skill | Audio service status: {}
08:23:25.839 | INFO | 747 | SpotifySkill | Device detected: DeviceType.DESKTOP
08:23:25.839 | ERROR | 747 | SpotifySkill | Unable to get a default device while trying to play something.
Environment (please complete the following information):
- Device type: Raspberry Pi 4 Model B Rev 1.1
- OS: Picroft
- Mycroft-core version: v21.02.0
Additional context
According to the logs, it seems to correctly connect to spotify and find the music. I just don't know how to fix this default device problem, though it seems to find a Device detected: DeviceType.DESKTOP
Edit
I ran pactl list sinks short and got the following output:
0 alsa_output.platform-bcm2835_audio.digital-stereo module-alsa-card.c s16le 2ch 48000Hz IDLE
1 alsa_output.platform-bcm2835_audio.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
Edit 2
I opened Spotify on my smartphone and it suggested my mycroft device with the proper name. I choose it and then I could use mycroft to play the music I wanted. On Reboot it stopped working again.
I get a
SpotifySkill | Unable to get a default device while trying to play something.I followed the instructions and it went well (as far as I could tell).
I installed raspotify and saved my username and password in the configuration file along with the device name saved on mycroft.ai.
(note: the instructions say to edit
/etc/default/raspotify.confbut by me, it was/etc/default/raspotify)I did change
UserandGrouptopi.I also executed the
auth.pyand gave the credentials from the Spotify Developper App page.Finally, I did add the credentials from my premium account on mycroft.ai.
Expected behavior
Music starts playing.
Log files
Environment (please complete the following information):
Additional context
According to the logs, it seems to correctly connect to spotify and find the music. I just don't know how to fix this default device problem, though it seems to find a
Device detected: DeviceType.DESKTOPEdit
I ran
pactl list sinks shortand got the following output:Edit 2
I opened Spotify on my smartphone and it suggested my mycroft device with the proper name. I choose it and then I could use mycroft to play the music I wanted. On Reboot it stopped working again.