I just got Mycroft to play music from my Emby server. Awesome! I have one problem though. I asked for Jake Owen to be played and Mycroft played Alan Jackson? Does anyone know how to fix this?
Thanks,
David
I just got Mycroft to play music from my Emby server. Awesome! I have one problem though. I asked for Jake Owen to be played and Mycroft played Alan Jackson? Does anyone know how to fix this?
Thanks,
David
Hi campdog, welcome to the community!
Based on your description so far, this could be either the speech recognition not hearing correctly, or the Skill selecting the wrong music.
If you are using the CLI, you can see what Mycroft hears when you speak, but this is also saved in /var/log/mycroft/voice.log
. What type of Mycroft device are you using?
If youâre using a local linux machine, you can do a quick grep:
grep "INFO - Utterance" /var/log/mycroft/voice.log
If youâre using a Picroft or Mark 1, this will fetch the contents of the log file and just return the list of utterances:
scp pi@192.168.*.*:/var/log/mycroft/voice.log /dev/stdout | sed -n -e 's/^.*INFO - Utterance: //p'
Just be sure to set the right IP address.
If it is hearing the utterance correctly, then you want to check skills.log
to see what the Emby skill is up to.
Glad to hear youâre enjoying the emby skill! How did you ask to play Jake Owen? The skill searches Emby based on utterance, but its could be smarter about what item is picked when multiple results are returned especially if an artist is featured on a song with another artist. Add the logs as suggested and we can get more info.
gez-mycroft and or sampsonight,
I am running mycroft on a linux machine using the cli. The interpretation is accurate, except for âembyâ is recognized as âmbâ. The artist or song is correct. Below is text from the skills log with the last attempt to play music. I asked to play Lita Ford from Emby, and it played Wasp, which is what has been happening, it plays music, just not what I asked for.
I would appreciate a hint on what to due next as I donât really understand what is happening by reading the skills log.
Thanks for the response, as it helped me get to this point.
10:56:38.429 - mycroft.skills.intent_service:handle_utterance:329 - DEBUG - Utterances: [âplay lita ford from mbâ]
10:56:38.538 - mycroft.skills.intent_service:handle_utterance:349 - DEBUG - Padatious intent: {ânameâ: âemby.rickyphewitt:emby.intentâ, âsentâ: âplay {media} from mbâ, âmatchesâ: {âmediaâ: âlita fordâ}, âconfâ: 1.0}
10:56:38.538 - mycroft.skills.intent_service:handle_utterance:350 - DEBUG - Adapt intent: {âintent_typeâ: âmycroft-playback-control.mycroftai:playâ, âmycroft_playback_control_mycroftaiPlayâ: âplayâ, âmycroft_playback_control_mycroftaiPhraseâ: âlita ford from mbâ, âtargetâ: None, âconfidenceâ: 0.375, âtagsâ: [{âmatchâ: âplayâ, âkeyâ: âplayâ, âstart_tokenâ: 0, âentitiesâ: [{âkeyâ: âplayâ, âmatchâ: âplayâ, âdataâ: [(âplayâ, âmycroft_playback_control_mycroftaiconverse_resumeâ), (âplayâ, âmycroft_audio_record_mycroftaiPlayâ), (âplayâ, âgame_zork_forslundPlayâ), (âplayâ, âmycroft_playback_control_mycroftaiPlayâ), (âplayâ, âmycroft_pandora_mycroftaiChangeâ)], âconfidenceâ: 1.0}], âend_tokenâ: 0, âfrom_contextâ: False}, {âstart_tokenâ: 1, âentitiesâ: [{âkeyâ: âlita ford from mbâ, âmatchâ: âlita ford from mbâ, âdataâ: [(âlita ford from mbâ, âmycroft_playback_control_mycroftaiPhraseâ)], âconfidenceâ: 0.5}], âconfidenceâ: 0.5, âend_tokenâ: 4, âmatchâ: âlita ford from mbâ, âkeyâ: âlita ford from mbâ, âfrom_contextâ: False}], âutteranceâ: âplay lita ford from mbâ}
10:56:38.541 - mycroft.skills.padatious_service:handle_fallback:148 - DEBUG - Padatious fallback attempt: play lita ford from mb
10:56:38.542 - Emby - INFO - {âmediaâ: âlita fordâ, âutteranceâ: âplay lita ford from mbâ}
Yea mycroft always seems to recognize emby as mb but the skill handles it. There are a few ways you can ask to play media from Emby. Below are the utterances that the skill attempts to match:
"Play {artist/song/album} From Emby"
"Play Artist {artist} From Emby"
"play Album {album} From Emby"
If you just say 'Play {media} from Emby the skill takes the value of âmediaâ and searches Emby for that media item. If more than one entry is found (E.g. an artist and album have the same name) the 1st result returned is used. Once a match is found mycroft plays an Emby Instant Mix using that media item. If you want to be more specific just preface the media item with âArtistâ or âAlbumâ that will force the search to be limited to that type and will play just songs from found artist/album.
From the logs it shows that mycroft played the Instant Mix which is why songs similar to the artist/album that was requested was played.
Thanks for the helpâŚ
No problem! Let me know if you have any other questions
Yes, I have a question :), is possible to play a custom playlist?
So I shoud say Ehy mycroft play mylist from emby
You should be able to say "Play Playlist {playlistnamehere} From Emby"
If you run into any issues feel free to open an issue on the skills github: https://github.com/rickyphewitt/emby-skill