Hi @Wismer !
Thanks a lot for your interest in spkr and in Snips !
By reading at the logs you provided, it seems that you successfully installed the Snips NLU engine.
Let’s make sure you can play songs locally.
First, check that you enable the
mopidy-local extension, that allows to read local files. To do so, edit the
Look for the
local section in the file.
Edit it to make it look like this :
enabled = true
library = json
media_dir = /home/pi/music
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
Don’t forget to replace
media_dir with the folder your music is in.
We now need to scan your music so that Mopidy can build an index :
sudo mopidyctl local scan
You now need to restart mopidy :
sudo systemctl restart mopidy.service
Now open up a browser on your computer, and head over to http://spkr.local:6680/iris/#/library/local .
You should see your local music !
Make sure you can play the music from Iris.
Now, we just need to add support for local playback. Open up the file
home-python/home/music.py. Edit the
search_spotify method the
Music class, so that it looks like this (add ‘local’ to the URIs)
def search_spotify(self, parameters):
spotify = parameters.copy()
spotify['uris'] = ['spotify:','local:']
spkr.python.service service :
sudo systemctl restart spkr.python.service
You should be all setup !