in case the requirements are not installed automatically you must perform the following
mycroft-pip install bs4 requests python-vlc
sudo apt-get install vlc
NOTE: this installs the VLC client on your machine which takes up to 250MB on your disk/sd-card
The AMZN Music Skill connects to to the Amazon Music Services
For that you need an an Amazon Music account and a subscription of type “music unlimited” or “prime music” - even if you want to stream music from your own library only.
After the skill is installed you must provide your account information in one of following ways:
Enter your login credentials at home.mycroft.ai > Skills > Amzn music
WARNING: with this option your Amazon username and password will be stored in clear text
i) on a server hosted by mycroft.ai and
ii) in the skills ‘settings.json’ file.
Run ./credentials.py in the skill directory /opt/mycroft/skills/amzn-music-skill.domcross and enter your login credentials there.
This will store your credentials encoded & pickled in the file credentials.store - this option is recommended if you care for privacy (and security of your Amaz*n account).
NOTE: file ‘credentials.store’ must be owned by mycroft:mycroft - either run credentials.py as user ‘mycroft’ or sudo chown mycroft:mycroft credentials.store afterwards.
NOTE: this skill uses the CommonPlayFramework, make sure to have skills mycroft-playback-control and mycroft-stop installed (normally they should as these are default-skills on most Mycroft platforms)
How to test the AMZN Music skill
Provide your Amazon Music credentials as specified above
uncheck option ‘Library only’ in the skills settings at home.mycroft.ai
Speak Hey Mycroft, play some jazz on amazon
Mycroft should play some jazz music
See above for more examples, by the way: German is supported too…
NOTE: this skill was tested on a Mycroft Mark-1 and a PiCroft with Google AIY Voice kit (both running Debian Jessie) and on Ubuntu 16.04 (running as guest OS in Virtualbox 5.1 on a MacOS host). Test results with any other OS and/or hardware platform are highly welcomed.
Where feedback on AMZN Music Skill should be directed at
Hi Dominik, great work getting this working for AMZN music.
I’ve never tried their music service before, but just noticed you can sign up for a 30 day free trial account. So if anyone is interested in testing this skill that is certainly an option. Just be sure to cancel your subscription before the end of 30 days if you don’t want to keep using it. I think they force you to have valid credit card details in your account to get started with the trial.
I am not sure if I understand correctly as I am not aware where a Captcha is required for authorization. Probably you have to log in once on the Amazon Music website. I had to do that when trying to access the Amazon-API for the first time…
Play back control skill is installed. I looked at my logs and it seems like vlc can’t load a bit of the log: [0194d6c0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Sorry for the delay,
My Pi croft is running Stretch, and I’ve rebooted many times.
Sometimes, but not always, the captcha is complained about, yet no matter what, nothing I do lets me play music.
Nope, I’m not getting any issues with Vlc now. Now all I see is sometimes the captcha request, but mostly, I see in the logs, the playback control skill searching for skills that could play that, but instead, failing.
If I have time, I’ll reinstall Picroft and give it another go.