Closed Tony1957 closed 6 years ago
Similar question. I have a google chrome cast attached to a TV in my bedroom. In the google assistant app on my phone, the chrome is named "parents TV". So I would like to be able to issue a command something like: AIY pi: "OK Google, play cat videos on the parents TV" AIY pi plays the audio of video on its own speaker but doesn't cast video to tv. "OK Google, trigger shutdown" <<<<--- AIY pi now off
On my phone: "OK Google, play cat videos on the parents TV" TV - Input changes to chrome cast. Youtube starts with cat video's, audio and video from TV not phone.
@mylife4aiurr , I am not sure about the AIY cloudspeech or the associated branches, but last time when i checked for Youtube streaming to chromecast from Google Assistant on Pi (this project), it was working fine.
@shivasiddharth Ok so maybe I'm issuing wrong voice command. What sentence structure would you use for aiy Google to cast video to Chromecast.. statement above didn't work for me.
@mylife4aiurr , in your previous post you just mentioned "AIY cant do it" it did not give me enough info on the issue. This edited version tells me as to what is happening. In this project i have associated the "play" command to play audio from youtube videos locally on pi. You have two options:
if 'play'.lower() in str(usrcmd).lower():
change play to something else, save and close.
orI'm not home at the moment to change the main.py file. But I called my wife to try your 2nd suggestion. She said: "Ok Google, YouTube cat videos on parents tv" Response: "Sorry I'm not sure how to help"
@mylife4aiurr , I just checked my chromecast. The streaming does not seem to work now.
Thanks for checking. I'd feel like I wasted your time if it worked for you. In the Google assistant app u can link the following video services: Netflix HBO Now CBS Viki And of course YouTube I've already linked my Netflix account, so would be great to say something like "ok Google stream Netflix breaking bad on parents tv" in addition to YouTube videos
@mylife4aiurr I am half way through Kodi integration, will look into these once thats done.
@Tony1957 , I have enabled youtube streaming using voice requests. In the actions file, you can choose to either play the video on kodi or locally on pi. Ref: https://youtu.be/ahc6XKYriHo
Hi Sid I have an issue, i installed the recent gassistpi with the kodi on it, installation was fine no issue's when i entered, source env/bin/activate - google-assistant-demo, i asked a few commands and she answered ok.
I carried on with the headless codes, restarted pi and i heared the starting audio and my mic light on usb was flashing as it normally does, when i issue a command like ( what time is it ) she tries to answer, but the light stops flashing and stays on, on the mic and the starting audio plays, it goes in the same loop on all commands.
I tried a fresh install with the latest raspbian and it is still the same, it is a pi 2 i am testing it on if it makes an difference. any help would be great, thanks in advance
This seems like a server related issue to me. A slow internet or segmentation fault kind of a thing. If you have not entered the YouTube API Key value, that could also be a reason. Stop the services using:
sudo systemctl stop gassistpi-ok-google.service
And try manually running the main.py. Whatever is causing the assistant to crash, the reason can be seen on the screen.
Hi Sid
Thank for your quick response i got the api key in it's place i ran main.py and got
pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py
Traceback (most recent call last):
File "/home/pi/GassistPi/src/main.py", line 17, in
Regards Tony
On Tue, Dec 19, 2017 at 3:04 PM, shivasiddharth notifications@github.com wrote:
This seems like a server related issue to me. A slow internet or segmentation fault kind of a thing. If you have not entered the YouTube API Key value, that could also be a reason. Stop the services using: sudo systemctl stop gassistpi-ok-google.service And try manually running the main.py. Whatever is causing the assistant to crash, the reason can be seen on the screen.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352784735, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGBz738j5Mn2y3Iyzxh1UKvvOypNWks5tB9BtgaJpZM4Q0M_I .
--
Kodi json should have got installed, when the installer script was run. Anyways, move into the env using:
source env/bin/activate
and now execute:
sudo pip install kodi-json
After that, try running the main.py
The kodi-json would be installed for root users. So when you run the main.py, make sure to add a sudo
Hi Sid
I tried as you said, sudo did not work for me, i had to change permissions on the main.py file and i got,
pi@raspberrypi:~ $ sudo /home/pi/GassistPi/src/main.py
sudo: /home/pi/GassistPi/src/main.py: command not found
pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py
Traceback (most recent call last):
File "/home/pi/GassistPi/src/main.py", line 24, in
Maybe i should try another fresh install
On Tue, Dec 19, 2017 at 3:51 PM, shivasiddharth notifications@github.com wrote:
The kodi-json would be installed for root users. So when you run the main.py, make sure to add a sudo
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352799364, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGHXEd2kGZErf8JMUgiQV95WCEoQzks5tB9uWgaJpZM4Q0M_I .
--
The main.py should be run within the environment. Looks like you are running it outside environment. That is why it is not picking up any of those packages. Execute this line, the environment stuff is taken care of automatically.
/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py
One last question ? did you replace the main.py with kodi-exclusive main.py ? Because, the kodi-exclusive will not even work for general queries like time and weather, as the name suggests its only for Kodi just with an added advantage of you not having the need to say on kodi everytime. I just realized that and have added a note in Readme.
Hi Sid
I replaced the files main.py and assistant.py i ran the link you gave me, and got,
ON_MUTED_CHANGED: {'is_muted': False} ON_START_FINISHED Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/urllib3/connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/home/pi/env/lib/python3.5/site-packages/urllib3/util/connection.py", line 83, in create_connection raise err File "/home/pi/env/lib/python3.5/site-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/home/pi/env/lib/python3.5/site-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.5/http/client.py", line 1107, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request self.endheaders(body) File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders self._send_output(message_body) File "/usr/lib/python3.5/http/client.py", line 934, in _send_output self.send(msg) File "/usr/lib/python3.5/http/client.py", line 877, in send self.connect() File "/home/pi/env/lib/python3.5/site-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/home/pi/env/lib/python3.5/site-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x74e7a270>: Failed to establish a new connection: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/requests/adapters.py", line 440, in send timeout=timeout File "/home/pi/env/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/home/pi/env/lib/python3.5/site-packages/urllib3/util/retry.py", line 388, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.15', port=8080): Max retries exceeded with url: /jsonrpc (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x74e7a270>: Failed to establish a new connection: [Errno 113] No route to host',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/GassistPi/src/main.py", line 150, in
On Tue, Dec 19, 2017 at 4:30 PM, shivasiddharth notifications@github.com wrote:
The main.py should be run within the environment. Looks like you are running it outside environment. That is why it is not picking up any of those packages. Execute this line, the environment stuff is taken care of automatically. /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py
One last question ? did you replace the main.py with kodi-exclusive main.py ? Because, the kodi-exclusive will not even work for general queries like time and weather, as the name suggests its only for Kodi just with an added advantage of you not having the need to say on kodi everytime. I just realized that and have added a note in Readme.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352811648, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGLVpJRTiKj_A5_IYgH9L_GF7jTpeks5tB-SOgaJpZM4Q0M_I .
--
Ok, I just realized as to what was happening. I had programmes the Kodi volume to be muted on wakeword detection. If someone is not running kodi, then it will search of that kodi to mute the volume and as it does not find any, it will crash. Thanks a lot for reporting this. I have now, commented the volume changing part. It should run fine now if kodi is not running. Can you remove the existing GassistPi folder and clone the git again and try, no need to re-install. Just clone the git and run the main.py
Hi Sid
Ok i will do a fresh install now.
Regards Tony
On Tue, Dec 19, 2017 at 5:34 PM, shivasiddharth notifications@github.com wrote:
Ok, I just realized as to what was happening. I had programmes the Kodi volume to be muted on wakeword detection. If someone is not running kodi, then it will search of that kodi to mute the volume and as it does not find any, it will crash. Thanks a lot for reporting this. I have now, commented the volume changing part. It should run fine now if kodi is not running. Can you remove the existing GassistPi folder and clone the git again and try.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352830488, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGMRVI2Afq9TauzKrRCWz-bbLpDTYks5tB_OLgaJpZM4Q0M_I .
--
@Tony1957 , Apologies for the mess..
Hi Sid I have done a fresh install, everything worked as it should, i could issue commands and she would answer them.
I want to use vlc instead of kodi, so i have uncommented and commented the lines.
When i replaced the main.py and assistant.py it started crashing again, i ran the main.py again and got,
pi@raspberrypi:~ $ source env/bin/activate (env) pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py ON_MUTED_CHANGED: {'is_muted': False} ON_START_FINISHED Traceback (most recent call last): File "/home/pi/env/lib/python3.4/site-packages/urllib3/connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/home/pi/env/lib/python3.4/site-packages/urllib3/util/connection.py", line 83, in create_connection raise err File "/home/pi/env/lib/python3.4/site-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) OSError: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/pi/env/lib/python3.4/site-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/home/pi/env/lib/python3.4/site-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.4/http/client.py", line 1090, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request self.endheaders(body) File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders self._send_output(message_body) File "/usr/lib/python3.4/http/client.py", line 924, in _send_output self.send(msg) File "/usr/lib/python3.4/http/client.py", line 859, in send self.connect() File "/home/pi/env/lib/python3.4/site-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/home/pi/env/lib/python3.4/site-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x76098b10>: Failed to establish a new connection: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/pi/env/lib/python3.4/site-packages/requests/adapters.py", line 440, in send timeout=timeout File "/home/pi/env/lib/python3.4/site-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/home/pi/env/lib/python3.4/site-packages/urllib3/util/retry.py", line 388, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.15', port=8080): Max retries exceeded with url: /jsonrpc (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x76098b10>: Failed to establish a new connection: [Errno 113] No route to host',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/GassistPi/src/main.py", line 150, in
On Tue, Dec 19, 2017 at 5:40 PM, shivasiddharth notifications@github.com wrote:
@Tony1957 https://github.com/tony1957 , Apologies for the mess..
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352832375, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGFzj2sGYlimJ0u7DLIJCxPyBrHieks5tB_UTgaJpZM4Q0M_I .
--
The crash is because, you dont have an active Kodi running. So you want to just view the Youtube video on VLC ? without all that Kodi and stuff ? I have modified both the files for you. You can download them from here https://github.com/shivasiddharth/GassistPi/tree/master/Extras/Youtube%20Video%20on%20VLC and replace the existing ones. By using syntax: From Youtube play videoname you should now have the video playing in VLC. Hope this helps.
Hi Sid
I have replaced the files you made for me, now i got her talking again thanks, I have set my pi up on a monitor which has vlc do i need to configure vlc in any way.
I tried to get it to stream to vlc but failed so far, i tried the phrase 'play' but that didn't work so i tried the prase 'stream' that works for the music, how do i get a video to play, for 'eg' one of your videos, not sure if i have to put a streaming link into vlc or not.
I had noticed when i open vlc manually to see if it plays anything, when the music from youtube is playing and i say, Ok Google, stop it automatically closes vlc.
Regards Tony
On Tue, Dec 19, 2017 at 8:35 PM, shivasiddharth notifications@github.com wrote:
The crash is because, you dont have an active Kodi running. So you want to just view the Youtube video on VLC ? without all that Kodi and stuff ? I have modified both the files for you. You can download them from here https://github.com/shivasiddharth/GassistPi/tree/ master/Extras/Youtube%20Video%20on%20VLC and replace the existing ones. By using syntax: From Youtube play videoname you should now have the video playing in VLC. Hope this helps.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352878672, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGOrEFqv72DD0nlaQGm4_wWUYx1QBks5tCB4HgaJpZM4Q0M_I .
--
Command is: "From Youtube play" I felt this was more conversational. Right now, you cannot pause VLC by voice, as you found out, you can only stop it. In the next update, i will add google music, at that time, will add voice controls to vlc, like pause, next, previous etc.
Ok Sid thank you for what you have done i deeply appreciate it..
I tried the command you say,"From Youtube play" she goes through voice responses but nothing opens in vlc i tried 'from youtube play' sids e classroom again nothing opened
On Tue, Dec 19, 2017 at 10:51 PM, shivasiddharth notifications@github.com wrote:
Command is: "From Youtube play" I felt this was more conversational. Right now, you cannot pause VLC by voice, as you found out, you can only stop it. In the next update, i will add google music, at that time, will add voice controls to vlc, like pause, next, previous etc.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352911242, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGC41YtnjJpari7N4xDJhbBR7N0bzks5tCD4EgaJpZM4Q0M_I .
--
So you should have got two voice responses, first which says "fetching youtube link" and a second voice response saying "Playing Youtube Video" ? Try this command. "From Youtube play pizza recipe video"
Hi Sid
I tried that command i had a few voices trying to get through in the background and one saying i cant play videos i haven't got a screen
On Tue, Dec 19, 2017 at 11:18 PM, shivasiddharth notifications@github.com wrote:
So you should have got two voice responses, first which says "fetching youtube link" and a second voice response saying "Playing Youtube Video" ? Try this command. "From Youtube play pizza recipe video"
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352916349, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGGD3u2FquNGbw2-RMKmFaxEMu61Rks5tCEQvgaJpZM4Q0M_I .
--
Fair enough... I need some time, i shall look into it and get back.
Ok thank you, i'm off to bed now.
On Tue, Dec 19, 2017 at 11:32 PM, shivasiddharth notifications@github.com wrote:
Fair enough... I need some time, i shall look into it and get back.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-352918760, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGBfkRP7Fmc7Iae3tKALJuHrdGtnEks5tCEd5gaJpZM4Q0M_I .
--
just remembered.. videos dont play, when they are run in the background. That is an inherent thing with all the headless systems. To be able to see the video, you should run the main.py manually
Hi Sid Good Morning
I just tried that i got sound up for the video but no picture, i took a copy of what i got pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py -bash: /home/pi/GassistPi/src/main.py: Permission denied pi@raspberrypi:~ $ source env/bin/activate (env) pi@raspberrypi:~ $ sudo /home/pi/GassistPi/src/main.py sudo: /home/pi/GassistPi/src/main.py: command not found (env) pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py ON_MUTED_CHANGED: {'is_muted': False} ON_START_FINISHED ON_CONVERSATION_TURN_STARTED ON_END_OF_UTTERANCE ON_RECOGNIZING_SPEECH_FINISHED: {'text': ''} ON_CONVERSATION_TURN_TIMEOUT ON_CONVERSATION_TURN_FINISHED: {'with_follow_on_turn': False}
ON_CONVERSATION_TURN_STARTED ON_END_OF_UTTERANCE ON_RECOGNIZING_SPEECH_FINISHED: {'text': 'from YouTube play'}
Traceback (most recent call last):
File "/home/pi/GassistPi/src/main.py", line 168, in
[01ae4120] core playlist: stopping playback [74301180] xcb vout display error: window not available [74301180] xcb vout display error: window not available [74301180] xcb vout display error: window not available [74301180] xcb vout display error: window not available commandline read: vlc commandline read: https://www.youtube.com/watch?v=Lyj8wH2iTYg
(c) 2001-2008 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2014-11-01 05:58)
(!) DirectFB/core/vt: Error opening `/dev/tty0'!
--> Permission denied
(!) DirectFB/Core: Could not initialize 'system_core' core!
--> Initialization error!
[74301180] directfb vout display error: Cannot create primary surface
[74301180] fb vout display error: cannot get terminal mode (Inappropriate
ioctl for device)
72068950] avcodec decoder error: more than 5 seconds of late video ->
dropping frame (computer too slow ?)
[72068950] avcodec decoder error: more than 5
seconds of late video -> dropping frame (computer too slow ?)
[72068950] avcodec
decoder error: more than 5 seconds of late video -> dropping frame
(computer too slow ?)
[72068950] avcodec decoder error: more than 5 seconds of late video ->
dropping frame (computer too slow ?)
[72068950] avcodec decoder error: more than 5
seconds of late video -> dropping frame (computer too slow ?)
[72068950] avcodec
decoder error: more than 5 seconds of late video -> dropping frame
(computer too slow ?)
[72068950] avcodec decoder error: more than 5 seconds of late video ->
dropping frame (computer too slow ?)
[72068950] avcodec decoder error: more than 5
seconds of late video -> dropping frame (computer too slow ?)
[72068950] avcodec
decoder error: more than 5 seconds of late video -> dropping frame
(computer too slow ?)
[72068950] avcodec decoder error: more than 5 seconds of late video ->
dropping frame (computer too slow ?)
On Wed, Dec 20, 2017 at 10:31 AM, shivasiddharth <notifications@github.com>
wrote:
> just remembered.. videos dont play, when they are run in the background.
> That is an inherent thing with all the headless systems. To be able to see
> the video, you should run the main.py manually
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353026675>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AgpPGOe5qDO0IrTNtIgtGuJ4e0f7TIy0ks5tCOIcgaJpZM4Q0M_I>
> .
>
--
http://porttalbotbouncycastleshire.com
Hi Sid
I tried that with putty
I just tried it again in the desktop of pi terminal and it brought up the vlc console and flashed an image of the pizza video and the sound plays, i think it is just a matter of some settings somewhere.
But it's nearly there.
On Wed, Dec 20, 2017 at 10:46 AM, Tony McCarthy tony.mccarthy0@gmail.com wrote:
Hi Sid Good Morning
I just tried that i got sound up for the video but no picture, i took a copy of what i got pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py -bash: /home/pi/GassistPi/src/main.py: Permission denied pi@raspberrypi:~ $ source env/bin/activate (env) pi@raspberrypi:~ $ sudo /home/pi/GassistPi/src/main.py sudo: /home/pi/GassistPi/src/main.py: command not found (env) pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py ON_MUTED_CHANGED: {'is_muted': False} ON_START_FINISHED ON_CONVERSATION_TURN_STARTED ON_END_OF_UTTERANCE ON_RECOGNIZING_SPEECH_FINISHED: {'text': ''} ON_CONVERSATION_TURN_TIMEOUT ON_CONVERSATION_TURN_FINISHED: {'with_follow_on_turn': False}
ON_CONVERSATION_TURN_STARTED ON_END_OF_UTTERANCE ON_RECOGNIZING_SPEECH_FINISHED: {'text': 'from YouTube play'}
Traceback (most recent call last): File "/home/pi/GassistPi/src/main.py", line 168, in
main() File "/home/pi/GassistPi/src/main.py", line 161, in main say("Fetching YouTube links for, "+track) File "/home/pi/GassistPi/src/actions.py", line 95, in say os.remove(tempfile) FileNotFoundError: [Errno 2] No such file or directory: 'temp.wav' (env) pi@raspberrypi:~ $ /home/pi/GassistPi/src/main.py ON_MUTED_CHANGED: {'is_muted': False} ON_START_FINISHED ON_CONVERSATION_TURN_STARTED ON_END_OF_UTTERANCE ON_RECOGNIZING_SPEECH_FINISHED: {'text': 'from YouTube play homemade pizza recipe'} homemade pizza recipe VLC media player 2.2.7 Umbrella (revision 2.2.7-0-g6e32381286) [01b64170] pulse audio output error: PulseAudio server connection failure: Connection refused [01b68eb8] core interface error: no suitable interface module [01ad48f8] core libvlc error: interface "globalhotkeys,none" initialization failed [01b68f20] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 [01b68f20] core interface error: no suitable interface module [01ad48f8] core libvlc error: interface "dbus,none" initialization failed [01ad48f8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [01b694e0] qt4 interface error: Could not connect to X server [01b694e0] skins2 interface error: cannot initialize OSFactory [01b694e0] [cli] lua interface: Listening on host "*console". VLC media player 2.2.7 Umbrella Command Line Interface initialized. Type `help' for help. [01ae4120] core playlist: stopping playback [74301180] xcb vout display error: window not available [74301180] xcb vout display error: window not available [74301180] xcb vout display error: window not available [74301180] xcb vout display error: window not available commandline read: vlc commandline read: https://www.youtube.com/watch?v=Lyj8wH2iTYg
(c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2014-11-01 05:58) (!) DirectFB/core/vt: Error opening `/dev/tty0'! --> Permission denied (!) DirectFB/Core: Could not initialize 'system_core' core! --> Initialization error! [74301180] directfb vout display error: Cannot create primary surface [74301180] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device) 72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) [72068950] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) On Wed, Dec 20, 2017 at 10:31 AM, shivasiddharth <notifications@github.com > wrote: > just remembered.. videos dont play, when they are run in the background. > That is an inherent thing with all the headless systems. To be able to see > the video, you should run the main.py manually > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353026675>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AgpPGOe5qDO0IrTNtIgtGuJ4e0f7TIy0ks5tCOIcgaJpZM4Q0M_I> > . > -- http://porttalbotbouncycastleshire.com
--
Its due to the lack of software codes for decoding video. I can suggest just you one thing at this point, may be you can get a Pi Zero W, install OSMC on it and leave it plugged to the TV or Monitor.
Ok thank you Sid i'll try that
On Wed, Dec 20, 2017 at 11:27 AM, shivasiddharth notifications@github.com wrote:
Its due to the lack of software codes for decoding video. I can suggest just you one thing at this point, may be you can get a Pi Zero W, install OSMC on it and leave it plugged to the TV or Monitor.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353038614, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGAE4x5AnNuyMRos_iG8bvAAtjXVgks5tCO8bgaJpZM4Q0M_I .
--
Ok, I am closing this issue for now, if you have any more concerns, please feel free to reopen it again..
ok thank you for your patience Sid
On Wed, Dec 20, 2017 at 11:53 AM, shivasiddharth notifications@github.com wrote:
Ok, I am closing this issue for now, if you have any more concerns, please feel free to reopen it again..
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353043804, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGJamSy5eKGRIcV35f9VTKKWBnBuVks5tCPUjgaJpZM4Q0M_I .
--
Hi Sid
I have installed osmc on another pi2 set it all up i now ot the youtube videos playing great, i am struggling a bit with the music playing, and shuffling.
I noticed in the main.py and assistant.py there are some lines that say Uncomment the following after starting the Kodi, have they all got to be uncommented in both files.
Regards Tony
On Wed, Dec 20, 2017 at 11:58 AM, Tony McCarthy tony.mccarthy0@gmail.com wrote:
ok thank you for your patience Sid
On Wed, Dec 20, 2017 at 11:53 AM, shivasiddharth <notifications@github.com
wrote:
Ok, I am closing this issue for now, if you have any more concerns, please feel free to reopen it again..
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353043804, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGJamSy5eKGRIcV35f9VTKKWBnBuVks5tCPUjgaJpZM4Q0M_I .
--
--
If you are using the custom wakeword then they need to be uncommented in assistant.py else if you are using just the hey google, then main.py would suffice. If you uncomment those lines, kodi would be muted, when GA starts listening to you and audio would be restored after the end of the conversation.
Ok thank you Sid.
Regards Tony
On Thu, Dec 21, 2017 at 4:22 PM, shivasiddharth notifications@github.com wrote:
If you are using the custom wakeword then they need to be uncommented in assistant.py else if you are using just the hey google, then main.py would suffice. If you uncomment those lines, kodi would be muted, when GA starts listening to you and audio would be restored after the end of the conversation.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353393356, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGARYmIOtVT-W3GObfQtcUIIb61Ylks5tCoXhgaJpZM4Q0M_I .
--
Hi Sid Just one more question and i think we have cracked it, is there a way to increase the listening time when we say ok google?
Regards Tony
On Thu, Dec 21, 2017 at 4:29 PM, Tony McCarthy tony.mccarthy0@gmail.com wrote:
Ok thank you Sid.
Regards Tony
On Thu, Dec 21, 2017 at 4:22 PM, shivasiddharth notifications@github.com wrote:
If you are using the custom wakeword then they need to be uncommented in assistant.py else if you are using just the hey google, then main.py would suffice. If you uncomment those lines, kodi would be muted, when GA starts listening to you and audio would be restored after the end of the conversation.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353393356, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGARYmIOtVT-W3GObfQtcUIIb61Ylks5tCoXhgaJpZM4Q0M_I .
--
--
Unfortunately, we dont have control over it.
Ok just a thought
On Thu, Dec 21, 2017 at 5:51 PM, shivasiddharth notifications@github.com wrote:
Unfortunately, we dont have control over it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353414516, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGIRIcfyyuAgkRdQ7pJrihXzfTfZwks5tCpqHgaJpZM4Q0M_I .
--
Hi Sid
Sorry to trouble you again, I am having issues with testing out your script, i have tried a few fresh installs and i am getting the same issue with credentials.
I tried with a creating a new project set the credentials correctly, and i got the same issue any idea's.
credentials saved: /home/pi/.config/google-oauthlib-tool/credentials.json pi@raspberrypi:~ $ source env/bin/activate (env) pi@raspberrypi:~ $ google-assistant-demo usage: google-assistant-demo [-h] [--credentials OAUTH2_CREDENTIALS_FILE] --device_model_id DEVICE_MODEL_ID [--project_id PROJECT_ID] google-assistant-demo: error: the following arguments are required: --device_model_id (env) pi@raspberrypi:~ $
On Thu, Dec 21, 2017 at 5:51 PM, Tony McCarthy tony.mccarthy0@gmail.com wrote:
Ok just a thought
On Thu, Dec 21, 2017 at 5:51 PM, shivasiddharth notifications@github.com wrote:
Unfortunately, we dont have control over it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shivasiddharth/GassistPi/issues/80#issuecomment-353414516, or mute the thread https://github.com/notifications/unsubscribe-auth/AgpPGIRIcfyyuAgkRdQ7pJrihXzfTfZwks5tCpqHgaJpZM4Q0M_I .
--
--
Google updated their SDK on 20th with new features. The change was radical and has broken all the existing projects, incl AIY's official ones.. I am almost done porting the project with the new sdk, installation process has changed a bit, so will update the git and release an How-To video tonight..
Hi Sid, Im getting this error: #
pi@NoahPi:~ $ /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id noahpi-19xx01 --device_model_id noahpi-19xx01-20180115111410 usage: main.py [-h] [--credentials OAUTH2_CREDENTIALS_FILE] --device_model_id DEVICE_MODEL_ID [--project_id PROJECT_ID] main.py: error: argument --credentials: No such file or directory: "/home/pi/.config/google-oauthlib-tool/credentials.json"
Hi Sid, you do great work and should be commended for it. I am not a coder but i am good at following instructions. I put your latest version of GassistPi on both my raspberry pi's 2 and 3 and works great. a little bit better on the pi3. I have a question concerning the you-tube streams. they are working great on both pi's for music playing, But my idea is to mount a monitor on my kitchen wall with built in pi3 and small amp for the sound. Is it possible to stream you-tube videos to that monitor by voice command, the reason is my wife likes cooking and it's to stream cooking recipes by voice command with the ability to pause by voice as she follows along.