GithubHelp home page GithubHelp logo

shivasiddharth / gassistpi Goto Github PK

View Code? Open in Web Editor NEW
1.0K 79.0 306.0 20.3 MB

Google Assistant for Single Board Computers

License: Other

Shell 7.98% Python 90.21% C++ 1.81%
google-assistant-sdk raspberry-pi google-assistant raspberry-pi-3 raspberry-pi-zero-w raspberry-pi-zero snowboy voice-commands assistant rpi

gassistpi's Introduction

github-small

GassistPi -- Google Assistant for Single Board Computers


A lot of resources (Pi hardware, other SBCs, Pi HATS, my precious time, etc) have been spent on this project's development. If you would like to support the development of this project, you can make some donations by clicking here --> 😄 Donate


16-May-2022 Update:

I am no longer maintaining this project due to lack of resources.


List of Donors Contribution in USD
Jean-François LE BRETON 5
Daniel Birrer 10
Tyler Kent 10
Daniel Birrer 10
Chris Noorman 10
Peter de Wagenaar 4
Tim Cox 5
Tom Hayward 20
Project Life (POLAND) - EXEPOWERED 3
Arthur E Travis Jr 10
Kevin Elgan 5
Dario Colasante 5
Simon Therrien 20
George Thomas 10
Julien Oberlin 3
Ingmar Guillaume 15
Jonathan Rondón 10
Norbert Tarr 1.5
Brian Rutherford 10
Alexander Hauser 10
Janne J Mäenpää 20
Sandeep Kundu 10
Patrik Guidali 3
Antonio Fragola 10
Eric Ha 25
Sergio Almagro Carrion 2
Alan Ng 10
Eli Lesteberg With 10
George Law 25
Syed Mohammed Sulaiman 8
Enzo Decorart di Randazzo Vincenzo 20
Brian Peacock 10
Michael Beljaars 10
Enzo Decorart di Randazzo Vincenzo 50
Soubhik Khan 10
Sagafon As 60
Kufirre Ebong 10
Drew Barthlow 40
Olivier Cabon 10
John Doan 20
Michael Weinmann 10
Stephan van Dongen 15
David Benucci 15

If any of you have donated, but your name is not in the list, please get in touch with me in Gitter.

Do not raise an Issue request for Non-Issue stuff. For Non-Issue Help and Interaction use gitter Join the chat at https://gitter.im/publiclab/publiclab


gassistpi's People

Contributors

aandroide avatar arul- avatar dependabot[bot] avatar dewgew avatar falias4 avatar grvweb avatar malmeloo avatar massipi avatar matrix1000 avatar moham96 avatar paolorotolo avatar shivasiddharth avatar tedsluis avatar valascus avatar vincew31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gassistpi's Issues

Issue while playing music

While playing music, I am facing issues:

def YouTube(phrase):
      print(phrase)
      idx=phrase.find('play')
      print(idx)
      track=phrase[idx:]
      track=track.replace("'}", "",1)
      track = track.replace('play','',1)
      track=track.strip()
      print(track)
      global playshell
      if (playshell == None):
        playshell = subprocess.Popen(["/usr/local/bin/mpsyt",""],stdin=subprocess.PIPE ,stdout=subproce$
      print("Playing: " + track)
      playshell.stdin.write(bytes('/' + track + '\n'))
    playshell.stdin.write(bytes('1' + '\n')) 
    playshell.stdin.flush()

If pharse is "Play shape of you", it fails while stdin.write and below is the exception

shape of you
Playing: shape of you
Traceback (most recent call last):
  File "/home/pi/main.py", line 76, in <module>
    main()
  File "/home/pi/main.py", line 71, in main
    YouTube(str(usrcmd).lower())
  File "/home/pi/actions.py", line 51, in YouTube
    playshell.stdin.write(bytes('/' + track + '\n'))
TypeError: string argument without an encoding
pi@raspberrypi:~ $ Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe

Trigger word not being recognized

Hi, I have everything installed and I verified the script runs on load by changing the startup wav and rebooting. Running google-assistant-demo works perfectly fine as well. The problem I am having is the trigger word is not being recognized. If I say hey google, the Fb.wav plays and I can ask the time. If I say "magic" (my trigger word) nothing happens. I added a subprocess to play the Tring.wav once the word is spoken (just copied the Pi-Close line) but when I say it, nothing happens. What's also odd, if I do say hey google, ask the time, every now and then your startup.wav will play again. This is a fresh installation with nothing else on it. I loaded the image then used your instructions. Any idea on why the trigger word isn't working? Or is it that I have to say hey google first then the trigger word. Any help would be greatly appreciated!

Radio Station - Can't download?

Nov 07 03:20:12 raspberrypi python[1460]: [01a98de0] [cli] lua interface: Listening on host "*console".
Nov 07 03:20:12 raspberrypi python[1460]: [cli] lua interface: Listening on host "*console".
Nov 07 03:20:12 raspberrypi python[1460]: [71700a10] filesystem access error: cannot open file /home/pi/p (No such file or directory
Nov 07 03:20:12 raspberrypi python[1460]: [71700a10] core access error: File reading failed
Nov 07 03:20:12 raspberrypi python[1460]: [71700a10] core access error: VLC could not open the file "/home/pi/p" (No such file or di
Nov 07 03:20:12 raspberrypi python[1460]: [71c00510] core input error: open of `file:///home/pi/p' failed
Nov 07 03:20:12 raspberrypi python[1460]: [71c00510] core input error: Your input can't be opened
Nov 07 03:20:12 raspberrypi python[1460]: [71c00510] core input error: VLC is unable to open the MRL 'file:///home/pi/p'.

Autostart with CLI on Boot - Problems

When following this instructions

#1. Autostart with CLI on Boot

#TO MAKE IT AUTO START ON BOOT sudo nano /etc/profile #IN THE WINDOW SCROLL DOWN TO LAST LINE AND PASTE BELOW sudo /home/pi/src/gassist.sh #SAVE AND EXIT BY PRESSING "CTRL+X" AND "Y" AND "ENTER" TO EXIT #CLOSE TERMINAL

The Assistant doesnt work/start automatically. It only starts to work automaticaly after I login via putty from a pc.
Theres is a lot on "error Outputs" during boot. See this screenshot:

Eventually that might help?

Additionally it is no longer possible to start the Pixel Desktop with the "startx" command after i apply the "sudo /home/pi/src/gassist.sh" to "sudo nano /etc/profile".
If I want to be able to "startx" the Desktop again I have to remove the "sudo /home/pi/src/gassist.sh" to "sudo nano /etc/profile" again.

custom wake word is not working properly.

Hey Sid, custom wake word is not working properly. with ok google, everything works perfect but with custom wake word it sounds like so destructible. if I ask something it detects something else.
I don't want multiple custom wake word, I need one custom wake word with GPIO and no freaking out. like your previous video: https://www.youtube.com/watch?v=QO3CCScg9-s&t=77s

please help me with that, how I can make one custom wake word and change the trigger word.

use gpio

Hello,
I want to use all gpio of raspberry. how to do?
for example: when i say :" ok google, turn on pump1" the gpio n°1 goes to high.
salusations and thanks

Thanks for your kind instruction.

Anyway, sometimes it crashes segment faults error. I doubt s3 connection is closed when there is no saying for a while.
I want to auto-restart when Assistant is finished or crashed. Have you any idea?

assistant is triggered by almost any word

Hi,
I'm running google assistant and snowboy on a raspberrypi 3 using a usb mic, but although the snowboy.py is using only two models (alexa.umdl and snowboy.umdl) google asistant is triggered by alot of words, some of the words that i tried:
-cortana
-siri
-android
-mark
even some arabic words trigger google assistant and sometimes when i'm talking on the phone or with someone next to the mic, this happens mostly if i'm away from the mic about 1 to 2 meters,I don't know what s causing this but could it be caused by a cheap mic ?
even some arabic words trigger google assistant and sometimes when i'm talking on the phone or with someone next to the mic, this happens mostly if i'm away from the mic about 1 to 2 meters,I don't know what's causing this but could it be caused by a cheap mic ?

Update for AIY kit

Hello,
Enhancement/update request now that the AIY kit is out en masse you may wish to add a note that GPIO 05/06 need replaced in main.py with 25.

This is minor, but your build is still better than the kit and I would like to see yours kept up even with the kit coming as an all in one.

maybe toss in a line "if you are using the AIY kit, to get the button LED working you need to update the GPIO settings from 05/06 to 25."
sed -i 's/05/25/g' main.py
sed -i 's/06/25/g' main.py

Help for modifying codes.

Hi Shiva, I have added a line code to the main.py and reboot the system, but Google assistant is not working anymore, even no boot up voice, any place I need take care with?

How to get rid of the tone heard after 'Hey google'?

Sid, first of all thanks so much for all the hard work. I was looking for a way to shutdown the Pi using a voice command since my Assistant setup will not have keyboard/monitor. This is perfect for that.

With this AIY implementation however, there is a tone (similar to the hangout notification) that is played every time after I say the wake word, which I find quite annoying. Usually I can ignore the tone and speak my request over it, but it can still be disruptive and sometimes seems to cause the Pi to lag for a moment. Is there any way to get rid of this tone?

BTW, prior to step 7 of your instructions for testing, I found it necessary to reboot the Pi first before it would work properly. You might want to add this step to your instructions.

Google assistant demo error

Recently I've installed latest RaspberryEcho stretch in my raspi 3, after following your steps carefully I got an error saying that

Google-assistant-demo: error --credentials: no such file or directory: "home/pi/. Config/google-oauth-tool/credentials.json"

Custom commands issue

I have problems adding custom commands.

In the action.py i added a simple command like

def party():
    os.system("./codesend 4289795")

I tried import this in assistant.py and main.py and still not working

from actions import party

I have watched your video but no idea how to make this working

The only way i made it work was to edit stop like below and stop command was sending my command

def stop(): pkill = subprocess.Popen(["/usr/bin/pkill","vlc"],stdin=subprocess.PIPE)

to

def stop():
    os.system("./codesend 4289795")

But any other custom command lines that i'm adding it's not working, please guide me

I tried this 3 formats with no success

def party():
    subprocess.Popen(["./codesend 4289795"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    os.system("./codesend 4289795")
    subprocess.call(["/codesend 4289795"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Thanks

Where Can I find The Action.py

Where Can I find The Action.py, I Need To Add Some Commands and Change Some Of The Results It Gives. I Have Installed THE OS you provided, ""voice-recognizer-raspi/src/action.py "" But Where Can I Finf This action.py?

Italian language info

Hi,
Google Assistant is rolling out in Italy (it will understand italian language).
I am wondering if i have to change your code of if this project will understand italian without any code review.
Thank you.

Jacopo

documentation error

Just a quick one: in Step 4.2, /home/pi/GassistPi/scripts/snowboy-deps-installer.sh requires pip, which isn't installed if you run that one first, before /home/pi/GassistPi/scripts/gassist-installer-pi-zero.sh

Might want to tweak that for absolute newbies following your otherwise superb guide.

Security Handshake failed

After some time running fine, it seems that the grpc loses the connection and cannot reconnect. On CLI we get an error E0612 Security Handshake failed.

I unfortunately do not know how to implement this but it seems there is a fix: evancohen/sonus#26

Installing - cannot import name HashMissing

hi,

i've been following your guide to install but when i run script gassist-installer-pi3.sh i get the following

pi@SteveAI:~ $ sudo  /home/pi/GassistPi/scripts/gassist-installer-pi3.sh
This script must run as pi, trying to change user...
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_AU
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_AU
Ign http://archive.raspberrypi.org jessie/ui Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_AU
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_AU
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version.
python-virtualenv is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libffi-dev is already the newest version.
libssl-dev is already the newest version.
portaudio19-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
Running virtualenv with interpreter /usr/bin/python2
New python executable in env/bin/python2
Not overwriting existing python script env/bin/python (you must use env/bin/python2)
Installing setuptools, pip...done.
/home/pi/env/bin/python2: cannot import name HashMissing; 'pip' is a package and cannot be directly executed

can you please assist?

OpenAlsaHandle

Hello Im trying to setup my RPi with the instructions you provided. I dont have the AYI Project so I started at the line that saids: FOR USERS WITHOUT AIY KIT START HERE AFTER SETTING UP AUDIO DEVICE

I keep getting this error each time I try to run the gassist.sh script:
OpenAlsaHandle PcmOpen: No such file or directory
[1605:1618:ERROR:audio_input_processor.cc(756)] Input error
ON_MUTED_CHANGED:
{'is_muted': False}
ON_START_FINISHED
ON_ASSISTANT_ERROR:
{'is_fatal': True}
[1605:1620:ERROR:audio_input_processor.cc(756)] Input error
ON_ASSISTANT_ERROR:
{'is_fatal': True}

I tried your way cause I wanted the Google Assistant to startup at boot. Before I was able to run it with no issues. And I was able to send commands and get replies. Any idea why now my I'm getting sound input errors.
Thanks.

Youtube playback is not working.

I did all of the steps in your read me file and everything worked flawless, except when I try and say "Play i got you" nothing happens. i waited to see it was the internet and it wasnt. The demo function showed the phrase was read but a no response was triggered.

ImportError: No module named click

Hi,

I tried to run snowboy.py by sudo python -u Doo_home/GassistPi/src/snowboy.py but it told me that missing module named "click" in assistant.py. How to take this module?
And when I run with python3 -m snowboy
It raise these error:

`Traceback (most recent call last):
File "/home/pi/Doo_home/GassistPi/src/snowboydetect.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib/python3.4/importlib/init.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 2254, in _gcd_import
File "", line 2237, in _find_and_load
File "", line 2226, in _find_and_load_unlocked
File "", line 1191, in _load_unlocked
File "", line 1161, in _load_backward_compatible
File "", line 539, in _check_name_wrapper
File "", line 1715, in load_module
File "", line 321, in _call_with_frames_removed
ImportError: dynamic module does not define init function (PyInit__snowboydetect)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/pi/Doo_home/GassistPi/src/snowboy.py", line 1, in
import snowboydecoder
File "/home/pi/Doo_home/GassistPi/src/snowboydecoder.py", line 5, in
import snowboydetect
File "/home/pi/Doo_home/GassistPi/src/snowboydetect.py", line 21, in
_snowboydetect = swig_import_helper()
File "/home/pi/Doo_home/GassistPi/src/snowboydetect.py", line 20, in swig_import_helper
return importlib.import_module('_snowboydetect')
File "/usr/lib/python3.4/importlib/init.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dynamic module does not define init function (PyInit__snowboydetect)`

Thank you

Audio Hierarchy

Hey,

is it possible to define the "hierarchy" of the usb-soundcard-usage?

For e.g. if I'm already playing Music via spoitfy connect or mopidy the voice gassist can't work and vice versa.

ON_CONVERSATION_TURN_STARTED ON_END_OF_UTTERANCE ON_RECOGNIZING_SPEECH_FINISHED: {'text': "how's the weather today"} ON_RESPONDING_STARTED: {'is_error_response': False} OpenAlsaOutputStream PcmOpen: Device or resource busy Start: pcm could not be opened... [1105:1113:ERROR:audio_output_stream.cc(109)] An error occurred when playing audio output ON_RESPONDING_FINISHED ON_CONVERSATION_TURN_FINISHED: {'with_follow_on_turn': False}

Is it possible to auomatically stop the Music layback after the hotword so gassist can work?

google-assistant-demo error

I followed the instructions very carefully and I was able to get into the (env) and then the command
google-assistant-demo gives me an error that reads:

usage: google-assistant-demo [-h] [--credentials OAUTH2_CREDENTIALS_FILE]
google-assistant-demo: error: argument --credentials: No such file or directory: "/home/pi/.config/google-oauthlib-tool/credentials.json"

I believe that it is looking for the credentials file, but after I authenticated and entered the code it said that is was saved in

/root/.config/google-oauthlib-tool/credentials.json

can anyone tell me how to fix this?

The LED pulses all the time, and I need to SSH into the pi to run the system

Thanks for this wonderful run-through on installing the aiyproject system. I had to make a fresh install last night as my SD card corrupted, but this time I needed to install everything headless as I don't have my old HDMI monitor with me at the moment. Your instructions worked a treat, so thank you!

However, a couple of issues:
1 - Once the system is up and running my LED is constantly pulsing. I edited the led.py file to try to resolve this but without success. Your LED does not constantly pulse, so where would I have gone wrong?
2 - The system only works once I SSH into the pi. Previously I only needed to supply power and everything ran without my involvement, save for pressing the LED button. Now I must SSH into the pi for the software to start to look for the hotword. What do I need to do to enable the system once power is supplied, please?

snowboy.service (snowboy.py) crashing

gassistpi-ok-google.service (main.py) running fully stable,
but snowboy.service (GassistPi/snowboy/snowboy.py) crashes after a while. Traceback pointet always to missing device for playing the DETECT_DING when detecting keywords.

Using audio Jack and USB Mic od RasPi 3 with clean Stretch plus lirc and Util433 installed.
Again, no issues with gassistpi-ok-google.service!

INFO:snowboy:Keyword 1 detected at time: 2017-10-08 20:30:59
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: control TV Guide
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 20:31:12
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: control TV channel 1
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 20:31:25
Traceback (most recent call last):
File "snowboy.py", line 58, in
sleep_time=0.03)
File "/home/pi/GassistPi/snowboy/snowboydecoder.py", line 172, in start
callback()
File "snowboy.py", line 41, in detected
snowboydecoder.play_audio_file(snowboydecoder.DETECT_DING)
File "/home/pi/GassistPi/snowboy/snowboydecoder.py", line 50, in play_audio_file
rate=ding_wav.getframerate(), input=False, output=True)
File "/home/pi/env/local/lib/python2.7/site-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/home/pi/env/local/lib/python2.7/site-packages/pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
IOError: [Errno -9985] Device unavailable
Traceback (most recent call last):
File "/home/pi/GassistPi/snowboy/snowboydecoder.py", line 80, in audio_callback
return play_data, pyaudio.paContinue
AttributeError: 'NoneType' object has no attribute 'paContinue'
Exception AttributeError in <function _remove at 0x76bf78b0> ignored


little bit different, but same result:
I stucked in Google Assist instead of listening to hotword, this is why Alexa is recognized.
No sound was played but MIC seems to work. After two tries and wait time, due to
audio device the assistant.py crashed.
System is just loaded <5% during waiting and max. 25% while processing

INFO:snowboy:Keyword 1 detected at time: 2017-10-08 21:03:39
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: control light off
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 21:03:48
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: control light on
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 21:03:56
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: control light off
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 21:04:07
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: Alexa
INFO:assistant:Expecting follow-on query from user.
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1396)
INFO:assistant:Finished playing assistant response.
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:Finished playing assistant response.
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 21:04:34
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: Alexa
INFO:assistant:Expecting follow-on query from user.
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
WARNING:root:SoundDeviceStream write underflow (size: 1600)
INFO:assistant:Finished playing assistant response.
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:Finished playing assistant response.
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 21:06:37
INFO:assistant:Recording audio request.
INFO:assistant:End of audio request detected
INFO:assistant:TEXT: control lights on
INFO:snowboy:Keyword 1 detected at time: 2017-10-08 21:06:53
Traceback (most recent call last):
File "snowboy.py", line 59, in
sleep_time=0.03)
File "/home/pi/GassistPi/snowboy/snowboydecoder.py", line 172, in start
callback()
File "snowboy.py", line 43, in detected
gassist.assist()
File "/home/pi/GassistPi/snowboy/assistant.py", line 125, in assist
flush_size=self.audio_flush_size
File "/home/pi/env/local/lib/python2.7/site-packages/googlesamples/assistant/grpc/audio_helpers.py", line 187, in init
blocksize=int(block_size/2), # blocksize is in number of frames.
File "/home/pi/env/local/lib/python2.7/site-packages/sounddevice.py", line 1491, in init
**_remove_self(locals()))
File "/home/pi/env/local/lib/python2.7/site-packages/sounddevice.py", line 1017, in init
'Error opening {0}'.format(self.class.name))
File "/home/pi/env/local/lib/python2.7/site-packages/sounddevice.py", line 2671, in _check
raise PortAudioError(msg)
sounddevice.PortAudioError: Error opening RawStream: Device unavailable

snowboy service is making sounds

snowboy service keeps making sounds. it is like a "loading sound" or "hold sound" and saying "now you can call me by your custom wakeword". It supposed to say it only in the beginning, so probably something is wrong. when i stopped service, it stopped making that sounds. how do i stop it from happening?

thanks,
Tadey

google assistant service is responding before snowboy

Hi,
I'm running Gassistpi on raspberrypi 3, according to the readme file I should run snowboy and google assistant service at the same time but sometimes google assistant takes the lead and respond before snowboy, for example when i say "Alexa" google assistant responds "I'm flattered but that's not me, I'm your google assistant" i don't know how to reproduce this issue, it happens randomly, this happened three times for me already

Change trigger word from "OK Google" to something we want

Hello Sid,

I wanted to change the trigger from "OK Google" to something else without using GassistPi. Please provide some information that would me do it.

I have Raspberry Pi 3 running NOOBs OS. So far, I have installed google-assistant-sdk and have it running successfully. Voice trigger with command "OK Google" works fine.

Cannot find file

pi@raspberryAssistant:~ $ sudo chmod +x /home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
chmod: cannot access '/home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh': No such file or directory

Hi there

Project looks really awesome but my Pi cannot seem to find the files even after installing raspi-kernel. Can you tell me what I'm doing wrong?

Thanks
Elliot

News playback

how can i make assistant read rss feeds from a website like timesofindia

google-assistant-demo Not found

Have ran through the instructions a few times, running the instructions in step 7 result in command not found:

pi@raspberrypi:~ $ source env/bin/activate
(env) pi@raspberrypi:~ $ google-assistant-demo
bash: google-assistant-demo: command not found
(env) pi@raspberrypi:~ $

Volume of assistant response really low

Hey, me again.

Just wanted to know if their is any way to boost the volume of the assistant’s response. I ask this because when I set an alarm, I can’t hear it, even when music is not playing. I can’t turn up the volume because that would mean that I would have to change the volume every time I switched between music listening and alarm setting.

GassistPi Restarting

GassistPi is restarting when i ask something and it takes time to respond but instead to respond to my question it restarted the service. i am using raspberry pi 3 model b

Audio prompts for device control, Pi Shutdown, servo control and wakeword detection not audible when custom wakeword is used while using HDMI for audio out

When using custom wakeword, snowboy.py process is one audio source and the audio prompts (aplay) in assistant.py is another audio source. As HDMI does not permit mixing of audio from two processes/sources, the prompts will not be heard.
To compensate for that, a tiny buzz for wakeword detection has been added and in the next revison, provision for LEDs to indicate listening and speaking events will be added.

The same in not the case for the conventional "Ok-Google" hotword. The audio is controlled by a single process and hence all audio prompts will be heard even while using HDMI for audio out.

Music stream ends abruptly

I have been happy with the project so far, but whenever I play music, it plays a little more than halfway through, and then stops. Running on RPI3. Any solutions?

File "/home/pi/GassistPi/src/main.py", line 39

I have one of the newer kits. I am guessing that is why it's not working. Maybe the pins are different. Can you help?
Here is the error.

File "/home/pi/GassistPi/src/main.py", line 39
GPIO.setup(05,GPIO.OUT)
^
SyntaxError: invalid token
gassistpi-ok-google.service: main process exited, code=exited, status=1/FAILURE
Unit gassistpi-ok-google.service entered failed state.
gassistpi-ok-google.service holdoff time over, scheduling restart.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.