reginaneon / avmusic Goto Github PK
View Code? Open in Web Editor NEWProvides the video/audio playback of music requested by the user.
Provides the video/audio playback of music requested by the user.
When the skill ask to confirm before playing the track mycroft apparently gets deaf; it's necessary to confirm through the cli (neither "yes", "no" , "proceed" seem to function) .
It never plays anything..
Note that:
Any ideas?
error form the voicelog below.
22:36:54.928 - mycroft.skills.core:wrapper:895 - ERROR - An error occurred while processing a request in A Vmusic Skill
Traceback (most recent call last):
File "/home/pi/mycroft-core/mycroft/skills/core.py", line 886, in wrapper
handler(message)
File "/opt/mycroft/skills/avmusic.reginaneon/init.py", line 76, in handle_playnow_intent
self.process = check_call(["mpv", self.vid], stdout=DEVNULL, stderr=STDOUT)
File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['mpv', 'http://www.youtube.com//watch?v=IVzyErnSnFI&list=PLni6pcFJkL35nzbh61MBpR0Y3Ex-5WKK-']' returned non-zero exit status 2
^--- NEWEST ---^
I have tried installing AV music on PiCroft and the MSM installation fails with an error at "sudo pip ...blah..."
This is the second time I have tried ( this was on a fresh install), and the first time I asked about the missing PIP on the forums, and was told that it doesn't exist inPython3 and that the advice is not to install it on the "base" system.
After all of that, AVmusic is in the list of "good" community skills, so I thought I would try again about a Month later (today) . I manually installed the player first after doing a full apt-get update && upgrade.
Should it work, or is it not ready for Python3 version PiCroft, or is this a bug?
Thanks
When the mpv process is opened with check_call it waits for it to exit, making the callout for the stopping somewhat unhelpfull. Also, mycroft does not work until i manually kill mpv.
As a solution id suggest using Popen instead - that does at least work on my machine.
I hope you have a great weekend
~mkalte
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.