forslund / mpd_skill

A Mycroft skill for controlling MPD media servers
GNU General Public License v3.0
11 stars 9 forks source link

track found too late (timeout) on raspberry #17

Open gras64 opened 3 years ago

gras64 commented 3 years ago

Good skil. if the database is large, the answer from mpd always comes after the mycroft error message on my raspberry. on PC OK. the answer comes about 20 seconds after playback control. Do you have an idea how I can speed it up?

16:19:13.610 | INFO | 810 | Playback Control Skill | Resolving Player for: rammstein 16:19:13.663 | INFO | 810 | Morse | save output for morse ft_skill.mycroft_skill:find_resource:720 | Resource 'PlayTheNews.list' for lang 'de-de' not found: trying 'en-us' Removing event mycroft-playback-control.mycroftai:PlayQueryTimeout Removing event mycroft-playback-control.mycroftai:PlayQueryTimeout Removing event mycroft-playback-control.mycroftai:PlayQueryTimeout 16:19:20.125 | INFO | 810 | Playback Control Skill | No matches >>>>>>>>> 16:19:20.296 | INFO | 810 | Morse | save output for morse Removing event mycroft-mark-2.mycroftai:IdleCheck 16:19:31.336 | INFO | 810 | Mark2 | Displaying all animations for page 16:19:31.338 | INFO | 810 | Mark2 | Cancelling Idle screen Removing event mycroft-mark-2.mycroftai:IdleCheck 16:19:40.228 | INFO | 810 | MPDSkill | MPD Found Rammstein >>>>>>>

forslund commented 3 years ago

Yes that is an issue at the moment. it's the fuzzy matching that takes time.

There are a couple of ways we can try:

forslund commented 3 years ago

Gonna keep working on this but I made PR #18 using rapidfuzz. If you get the chance try switching to the branch feature/rapidfuzz and reinstall the requirements.txt mycroft-pip install /opt/mycroft/skills/mpd_skill.forslund/requirements.txt