Multiple Custom Wakeword Triggers for Headless Google Assistant on Raspberry Pi 3 and Pi Zero

  Рет қаралды 13,280

Sid's E Classroom

Sid's E Classroom

6 жыл бұрын

Trigger Google Assistant SDK on Raspberry Pi 3 and Pi Zero or Pi zero W using multiple custom wakeword snowboy triggers. Custom Wakeword snowboy triggers for google assistant on Pi 3 and pi zero w. Headless Google assistant on raspberry pi 3 and pi zero w with custom wakeword or hotword triggers.
Link to the project git:
github.com/shivasiddharth/Gas...
clone the git using:
git clone github.com/shivasiddharth/Gas...

Пікірлер: 199
@shashankrajeev6369
@shashankrajeev6369 6 жыл бұрын
Hey Sid, could you help me setup Google Assistant on my pi 3 using a Bluetooth microphone?? can't seem to find a tutorial anywhere....I would appreciate if u could give me some hints....
@apexinfosysindia1734
@apexinfosysindia1734 6 жыл бұрын
The internal functions which work with Ok google like , set a timer, set volume to 70%, set an alarm, etc. Don't work in custom wakeword?
@TheNikolaschoulakis
@TheNikolaschoulakis 6 жыл бұрын
Can the popping sound be eliminated in the pi zero ? I read this is a common issue when running assistant on that board due to its specs.
@luanarossin5963
@luanarossin5963 6 жыл бұрын
Hi Sid's, the snowboy files not more present in GitHub... :( How can change hotword "OK Google" to my personal hotword?
@akterahsan6196
@akterahsan6196 6 жыл бұрын
One More Thing does all of those tutorials works with your ISO? like Headless starting.
@yashpujari8628
@yashpujari8628 5 жыл бұрын
Hey sid, firstly thanks for your efforts you put in.Hats off! I've been facing an error while starting the service after demo Getting the error Dynamic module does not define init function (init_snowboydetect) Would be really helpful if you looked into the issue... Thanks
@gauravkul1
@gauravkul1 6 жыл бұрын
Hi sir, Everything is working good but after 3 tries it stops in between . It detect the hotword but can't respond .what would the solution??
@dragondx2
@dragondx2 2 жыл бұрын
hey Sid, i followed all the tutorial and docs, it works perfect. only snowboy is not available anymore and picovoice it's only trial....do u know any other way to create a new custom wakework model?
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Hello: Again Do I need to go to your other videos to download files then come back to to this video and download the files on github, the reason i ask is you reference your other videos and i'm not sure. I am not trying to be difficult i'm just trying to understand the steps. Please be patient with my noobism Im just trying to learn. Thank You For Your Time
@praveennadavinkeri3800
@praveennadavinkeri3800 6 жыл бұрын
hi Sid, my google assistant is working properly but only for 4 to 5 questions after that no response and i have to restart my raspberry pi 3 to work please help me.
@IngeniousProjects-tu5cf
@IngeniousProjects-tu5cf 4 ай бұрын
Seems like Snowboy is no longer in use, kindly let me know any alternative method to make the custom wake word
@swannschilling474
@swannschilling474 6 жыл бұрын
Hey Sid, I cannot find the wakeword implementation any more...is it no longer available? :)
@claudioLuna02
@claudioLuna02 6 жыл бұрын
very very good Are you using 2 assistant, google and alexa ? customizing words key with snowboy? off or online internet? thanks
@ayushnayak1
@ayushnayak1 6 жыл бұрын
Hi,Sid can you please make a video in which you show the step by step installation of this program please make it as soon as possible
@akterahsan6196
@akterahsan6196 6 жыл бұрын
Hey Sid, can you make a full tutorial for controlling GPIO.
@satamanyudash795
@satamanyudash795 4 жыл бұрын
Unable to use custom wake word..i followed the instructions still its not working
@linkreincarnate9402
@linkreincarnate9402 6 жыл бұрын
How can you monitor what google assistant is hearing (like in the demo) after you set up autoboot? Also the beginning of the audio cuts out whenever google responds. Anybody have a fix for that?
@TheNikolaschoulakis
@TheNikolaschoulakis 6 жыл бұрын
Linkreincarnate good questions I like to know that too
@eversthomas
@eversthomas 6 жыл бұрын
hey i had some questions , what does the assisstant do when u ask to play a youtube video? I am quite sure it wont work but i would love to get it to work since i am working on a raspberry pi assistant with a GUI but have no real idea how to start this
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Video requests does not work. github.com/StevenHickson/PiAUISuite this a very good starting point..
@PratikRocksable
@PratikRocksable 6 жыл бұрын
Hi There is no Snowboy folder exist anymore... Please help
@massimodileo7169
@massimodileo7169 6 жыл бұрын
Hi Sid, I have an already working set up of Google Assistant, made following one of your previous tutorial. Can I simply "upgrade" (overwriting the GassistPi folder I guess) or should I start from scratch again? I only miss the multiple custom wake word part.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Please start from scratch. The previous versions were based on Python3 and this is based on Python2 so just over writing will not work. So start by making a fresh copy of OS.
@danielh8050
@danielh8050 6 жыл бұрын
Hi Sid, I noticed when I give a same question to "Snowboy" wakeword and "Ok Google" wakeword, the assistant gave a different answer. For example, I say "Let's go!". Ok Google will say "I'm ready!", whilst snowboy will answer either "sorry, I can't help with that yet" or "here's matching video". The same thing if I ask question such as "Can we go now?" "Can you hear me now?"
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
google has some issues with their servers. Guess, may be they are upgrading something..developers.google.com/assistant/sdk/release-notes github.com/googlesamples/assistant-sdk-python/issues/119
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Hello: Yes i'm a noob so that's why I have this question. exactly what do I need to download from github to get this to work there are a lot of files on there and i'm not sure which ones i need. I know for other people reading this (that know ) it sounds funny and it should be simple but im new and I don't have a clue what to download. I have a raspberry pi3 a usb mic and a 3.5 mm jack speaker. My goal is to have google on the pi with a custom wake word. I can follow the instructions but for the life of me I don't hear exactly what you say down load. If you don't respond I will understand, but i'm just trying to learn and the only way sometimes is ask questions, Remember there are no dumb questions only dumb answers. Thank You For your Time
@peterkent6399
@peterkent6399 6 жыл бұрын
Hi Sid, Thanks for updating to Python3 and adding the other bells and whistles. Just wondering if there was a reason you omitted "Radio 4" in the actions.py file. Asking because when I included Radio 4 in my list of stations I couldn't get Google Assistant to play Radio 4 (annoyingly, since it was mapped to BBC Radio 4, which I now have to call Radio 5).
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
For some reason, google assistant picks up "Radio Four" pronunciation as "Radio For". I thought it was because of my non-native pronunciation and I had mentioned that in the video as well, so that if ppl wanted, they could set it to Radio 4.
@peterkent6399
@peterkent6399 6 жыл бұрын
Sid's E Classroom Ah, OK, didn’t watch the updated video. Definitely not your accent! Thanks again for this great project.
@itslhycreations4819
@itslhycreations4819 6 жыл бұрын
HI can you make a video on wakeword or hey google for smart mirror waiting for your reply
@akterahsan6196
@akterahsan6196 6 жыл бұрын
Can you make a complete ISO of this upgrade..?
@massimodileo7169
@massimodileo7169 6 жыл бұрын
Hi, Sid, sorry one last question. It's not very clear to me how to add new hot word. When I create it on snowboy I get a .pmdl (because I guess it's a personal model) instead of the .umdl you used. When I add it to the snowboy.py file , in the model = ... section, snowboy keeps looping. I have to remove the added pmdl word in order to make it work. Am I missing anything?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Can you share a snapshot of the change that you have made ? If you can share a snapshot, i can easily point out as to whats happening. Can you upload it to google drive or somewhere and share the link
@massimodileo7169
@massimodileo7169 6 жыл бұрын
Actually the only modification I've done is: models = ['/home/pi/GassistPi/snowboy/resources/alexa.umdl', '/home/pi/GassistPi/snowboy/resources/snowboy.umdl','/home/pi/GassistPi/snowboy/resources/Nuvola.pmdl'] in the file snowboy.pi. Obviously the pmdl is in the correct folder.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Do you need three hotwords ? If so then, down there will be one line callbacks = [detected, detected] change that to callbacks = [detected, detected, detected] if you do not need three hotwords, then you can delete snowboy or alexa which ever you dont need and there is no need to change the callbacks
@massimodileo7169
@massimodileo7169 6 жыл бұрын
uhm snowboy now works but the google assistant keeps restarting every time I call it. Uhm.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Whenever you hit an error, i have programmed the google assistant to auto start. This is a common case if have hit the daily quota of 500 wakewords. In order to find the issue, you need to manually start the main.py. But before that stop the google assistant service using sudo systemctl stop gassistpi-ok-google.service then in the terminal type the following source env/bin/activate python /home/pi/GassistPi/src/main.py This will manually start the google assistant. Now when you use the ok google or hey google wakeword, i will spill out whatever error it is facing.
@magicmirror4931
@magicmirror4931 6 жыл бұрын
hi thanx for the tutorial , but I'm new in this can you please make a tutorial step by step from the beginning to the end how you are doing this thanx I would like an explanation like for the beginners , I'm new to this
@travelsparks2616
@travelsparks2616 5 жыл бұрын
Please make the new tutorial about rasberry pi 0 w hotward please by step by step
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Im sorry for asking so many questions but I have another one when you talk about downloading a fresh copy RASPBIAN STRETCH are you talking about RASPBIAN STRETCH WITH DESKTOP or RASPBIAN STRETCH LTE and I don't need regular Raspbian right? THANKS AGAIN!!
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Raspbian Stretch with Desktop is more convinient to work with. First step is to clone the project use this command in the terminal git clone github.com/shivasiddharth/GassistPi After that follow the instructions in the readme file.
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Thanks for answering Just to make sure a fresh install, this video and the get clone is all I need beside the hardware right? Thank You For Your time
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Yes thats all you need. For authentication, you need a credentials file.. go through this documentation for that developers.google.com/assistant/sdk/develop/python/config-dev-project-and-account
@peterkent6399
@peterkent6399 6 жыл бұрын
Great project Sid! After my usual bumbleheaded mistakes/not following your instructions, this is working perfectly - and neatly integrated with another Pi 3 project run on the same machine. One thing I can't figure out though. In the main.py file it was easy to see where I could turn on a light to indicate the Assistant is listening -- and then turn it off. But in the snowboy.py file all I can do is turn on a light -- I can't see how to turn it off after a few seconds of no activity. Also, what is toggling pin 22 doing in the snowboy.py file in the detected() function?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Hello, For using LEDs to indicate listening or speaking, you could have used the main.py placed in the neopixel folder (My mistake i should have mentioned it in README). For neopixel based indication, i had asked ppl to connect two GPIOs to arduino, instead you could connect even two LEDs. I guess in the next revision, i shall make that code standard and include some comments in README. Regarding listening and speaking indication for custom wakewords, changes have to be made in the assistant.py and not snowboy.py. i shall make those changes in the next revision. Some requested me to add a visual reference for custom wakeword detection and the toggling of GPIO 22 is for that. If you connect a LED to GPIO 22, when a custom wakeword is detected it will blink or rather wink.
@peterkent6399
@peterkent6399 6 жыл бұрын
Ah, on GPIO 22 I kinda thought that might be it. But for an existing project already running on the Pi I am using relays to switch on and off inidcator lights so can't have a real fast blink - but I think you may have given me enough here to come up with a solution! Thanks so much for the speedy response - awesome support!
@peterkent6399
@peterkent6399 6 жыл бұрын
Yup, that was what I needed - a little tweak to the assistant.py file and it works fine. Thanks again.
@apexinfosysindia1734
@apexinfosysindia1734 6 жыл бұрын
I'm sorry for asking you this stupid question sir but pls help me...There are 3 jumper wires used for 3 led's in 23, 24 and 25 pin. But the 4th jumper wire you used....where does it connect...I have connected all the wires according to your video but it's still not working..pls tell me where to put the 4th wire?
@linkreincarnate9402
@linkreincarnate9402 6 жыл бұрын
Ground
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
I will do that. And concerning turning off of the google service Open the terminal and execute the following sudo systemctl disable gassistpi-ok-google.service if I decided to turn it back on will all I have to do is Open the terminal and execute the following sudo systemctl enable gassistpi-ok-google.service? And one last thing for now :-) Is the snowboy service google service? I meen when I turn off google service and keep snowboy will it still get answers from the internet to questions that a person asks except I can use my custom wake word?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
After enabling, you need to start using sudo systemctl start gassistpi-ok-google.service .. the same stuff that is there in the README file.. Snowboy is just an application for triggering google assistant. There are two modules called gRPC and assistant library. While the assistant library supports "Ok-Google" hotwording, the grpc is for custom triggers. There are some features of assistant librray that grpc will not support like timers, alarms. You can find more details about that here developers.google.com/assistant/sdk/overview
@massimodileo7169
@massimodileo7169 6 жыл бұрын
I Sid, eventually I've finally discovered that the snowboy service seriously decreases the sound quality for me. Shutting down the service brings the voice loud and clear again. Do you have any idea on how to troubleshoot this issue?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
I would suggest you to use a DAC. Either USB sound cards or the I2S ones.
@massimodileo7169
@massimodileo7169 6 жыл бұрын
OK, I've just ordered a DAC. Meanwhile I've noticed that the quality calling "ok Google" and the custom hotword is totally different. OK Google works fine, but passing through the snowboy service seriously decrease quality.
@MrMoulme
@MrMoulme 6 жыл бұрын
Hi Sid, The keyword "Jarvis" does not work. Any idea ? I'd like to play a radio through de GA, which project do you recommend ? Thanks for your work, it's amazing !
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Jarvis is a personal model. I would suggest you to train snowboy with your own voice and generate a model. You can use the old AIY for radio or modify the GassistPi. The audio quality of GassistPi is better than the old AIY. kzfaq.info/get/bejne/Y7Odq7qIzMnJc5s.html i have covered in detail as to how you can create custom actions.
@MrMoulme
@MrMoulme 6 жыл бұрын
Thanks Sid, I understand the meaning of training a hotword after going on Snowboy website. About the radio, I would love to use GassistPi but I'm not good enough at coding. I was wondering if someone has gone through the coding process already. Do you think that the Pi3 would support the "smart mirror" process and GassistPi in the same time ? Last question : what would be GPIO numbers when using Google aiy kit leds ? Thanks again for your time, I learn a lot through your videos and comments
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
ktinkerer.co.uk/play-bbc-radio-raspberry-pi-aiy-project/ here is the link for AIY radio. I will be adding radio to GassistPi in the coming weeks. I have actually heard from someone that GassistPi works with smart mirror. Its just that you need to have the default user as pi. regarding GPIO of AIY, the details are there in the AIY project page.
@mannynunez1481
@mannynunez1481 6 жыл бұрын
Hello Sid, first let me thank you for all your work on this. I'm getting through all your instructions just fine at least until I enter the environment and start the google-assistant-demo. At that point I get "-bash: google-assistant-demo: command not found". Has this been removed somehow? Any help would be greatly appreciated. I'm hung up there. BTW, I started a fresh install onto a brand new Zero W.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
You dont have google-assistant-demo for raspberry pi zero. you need to use googlesamples-assistant-pushtotalk i have mentioned that in the Readme file.
@mannynunez1481
@mannynunez1481 6 жыл бұрын
Oh, I see. I must've overlooked that. I'll give it a try. Thank you.
@balag3531
@balag3531 6 жыл бұрын
Custom command doesn't work here
@massimodileo7169
@massimodileo7169 6 жыл бұрын
Hi Sid, this time I've tried to run your tutorial on a raspberry pi. I've just burned a fresh install of raspbian stretch, than followed your instructions. After the bassist-installer-pi-zero.sh I get these errors: Collecting pyOpenSSL>=0.14; python_version google-assistant-sdk[samples]) Exception: Traceback (most recent call last): File "/home/pi/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/pi/env/local/lib/python2.7/site-packages/pip/commands/install.py", line 353, in run wb.build(autobuilding=True) File "/home/pi/env/local/lib/python2.7/site-packages/pip/wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "/home/pi/env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/home/pi/env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 554, in _prepare_file require_hashes File "/home/pi/env/local/lib/python2.7/site-packages/pip/req/req_install.py", line 278, in populate_link self.link = finder.find_requirement(self, upgrade) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 423, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 568, in _get_pages page = self._get_page(location) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 683, in _get_page return HTMLPage.get_page(link, session=self.session) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 792, in get_page "Cache-Control": "max-age=600", File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get return self.request('GET', url, **kwargs) File "/home/pi/env/local/lib/python2.7/site-packages/pip/download.py", line 386, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/home/pi/env/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send timeout=timeout File "/home/pi/env/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen _stacktrace=sys.exc_info()[2]) File "/home/pi/env/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment total -= 1 TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
You mean you are installing the assistant on pi zero and you used the pi zero script and got this error ?
@massimodileo7169
@massimodileo7169 6 жыл бұрын
Yes exactly. I'm actually running the script a second time since I've found that a possible cause could be a momentary network issue. Let's see.
@massimodileo7169
@massimodileo7169 6 жыл бұрын
OK I can confirm that the issue didn't come up the second time, so probably was due to a momentary network problem. So far, so good.
@danielh8050
@danielh8050 6 жыл бұрын
Hi Sid, it's me again. After changing the microphone to USB sound card, everything was working fine. After couple of days did nothing, today I tried to turn on my Pi and suddenly, not sure what happened, it stops working. I tried to manually restart the gassistpi-ok-google.service and the snowboy.service but it immediately disappear. What could be wrong? I didn't get any error or whatsoever.
@danielh8050
@danielh8050 6 жыл бұрын
Just for additional info, when I tried to run google-assistant-demo, I got this error: pi@raspberrypi:~ $ source env/bin/activate (env)pi@raspberrypi:~ $ google-assistant-demo Traceback (most recent call last): File "/home/pi/env/bin/google-assistant-demo", line 11, in sys.exit(main()) File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/__main__.py", line 66, in main with Assistant(credentials) as assistant: File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/library/assistant.py", line 93, in __init__ credentials, self._set_credentials) File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/library/auth_helpers.py", line 40, in __init__ self._credentials.refresh(http_request) File "/home/pi/env/local/lib/python2.7/site-packages/google/oauth2/credentials.py", line 117, in refresh self._client_secret)) File "/home/pi/env/local/lib/python2.7/site-packages/google/oauth2/_client.py", line 189, in refresh_grant response_data = _token_endpoint_request(request, token_uri, body) File "/home/pi/env/local/lib/python2.7/site-packages/google/oauth2/_client.py", line 104, in _token_endpoint_request method='POST', url=token_uri, headers=headers, body=body) File "/home/pi/env/local/lib/python2.7/site-packages/google/auth/transport/requests.py", line 115, in __call__ raise exceptions.TransportError(exc) google.auth.exceptions.TransportError: HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known',)) (env)pi@raspberrypi:~ $ The internet connection works just fine because I copied/pasted this from SSH using Putty, and I can browse the Internet using the default Raspbian Chromium browser.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Looks like an authentication issue. Just run the authentication command once and see.
@harrym3115
@harrym3115 6 жыл бұрын
Hello Sid, I followed your GitHub instructions. I am using Raspberry Pi Zero W with GENERIC USB Sound card. From your Audio Config instructions I ran 3.3 & 3.4 but didn't work on my USB sound card but finally I added the following lines in my /etc/ asound.conf defaults.ctl.card 1 defaults.pcm.card 1 defaults.timer.card 1 Now the Audio and Mic does work. But when I trigger the Alexa or Snowboy voice command I get reply " Give me permission to help you". What permissions do I need to activate? Thanks
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
I have clearly given an audio config for USB Sound Card/DAC 3.1
@harrym3115
@harrym3115 6 жыл бұрын
when I trigger the Alexa or Snowboy voice command I get reply " Give me permission to help you" and then stops listening. I restart the Snowboy service and again same thing.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Did you authenticate using the credential file ?
@harrym3115
@harrym3115 6 жыл бұрын
I followed all the instructions ( 1. Downloaded Client******.json, 2. placed in /home/pi, 3. renamed to assistant.json)
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
You need to give proper permissions like location, etc all that are mentioned in the credential creation document. developers.google.com/assistant/sdk/develop/python/config-dev-project-and-account you need to turn on all the permissions in this page. myaccount.google.com/activitycontrols
@agarwalnitin92
@agarwalnitin92 6 жыл бұрын
hi, Sid, i'm using custom wake work for activate. it is working perfectly but after calling 2-3 times, it will stop working. then i restart the device, it will work only for 2-3 times. can u please help me to resolve this issue ?
@gauravkul1
@gauravkul1 6 жыл бұрын
Nitin Agarwal did u resolve this issue if yes please tell me too
@topspygun9730
@topspygun9730 6 жыл бұрын
Hi Sid! I have the same problem. Can you help?
@joshparinussa4604
@joshparinussa4604 6 жыл бұрын
Hi, i tried to follow your instruction in GitHub, but i get this error "TException: Traceback (most recent call last): File "/home/pi/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/pi/env/local/lib/python2.7/site-packages/pip/commands/install.py", line 353, in run wb.build(autobuilding=True) File "/home/pi/env/local/lib/python2.7/site-packages/pip/wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "/home/pi/env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/home/pi/env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 554, in _prepare_file require_hashes File "/home/pi/env/local/lib/python2.7/site-packages/pip/req/req_install.py", line 278, in populate_link self.link = finder.find_requirement(self, upgrade) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 465, in find_requirement all_candidates = self.find_all_candidates(req.name) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 423, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 568, in _get_pages page = self._get_page(location) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 683, in _get_page return HTMLPage.get_page(link, session=self.session) File "/home/pi/env/local/lib/python2.7/site-packages/pip/index.py", line 792, in get_page "Cache-Control": "max-age=600", File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get return self.request('GET', url, **kwargs) File "/home/pi/env/local/lib/python2.7/site-packages/pip/download.py", line 386, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/home/pi/env/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "/home/pi/env/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send timeout=timeout File "/home/pi/env/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen _stacktrace=sys.exc_info()[2]) File "/home/pi/env/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment total -= 1 TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' " when i tried to install gassit-installer-pi3.sh I'm using raspberry pi 3 Can you help me Sid?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
What OS are you running ?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
There are many reasons for the error, 1. Locale related issues. 2. env issue, when you try to overwrite an environment 3. Broken updates or upgrades due to slow internet If you are doing a fresh installation and still getting this error, first execute the following command in the terminal and then run the installer. sudo apt-get update --fix-missing
@joshparinussa4604
@joshparinussa4604 6 жыл бұрын
im using the newst raspbian Do i need setup the env in python 2? like in google instruction website
@blueskyknight14Sqdn
@blueskyknight14Sqdn 4 жыл бұрын
hello Sid, could I pay you to convert my Raspberry Pi to my wake word? regards. jonathan
@danielh8050
@danielh8050 6 жыл бұрын
Hi Sid, first, the google-assistant-demo and googlesamples-assistant-pushtotalk won't work until I changed the file .asoundrc to this code: pcm.!default { type asym capture.pcm "mic" playback.pcm "speaker" } pcm.mic { type plug slave { pcm "hw:1,0" } } pcm.speaker { type plug slave { pcm "hw:0,0" } } I'm using fresh and updated Raspbian Jessie 1.3 on Pi 3 with USB Mic and Jack. Second, once executed the "sudo systemctl start snowboy.service", I keep getting "starting snowboy" noise over and over. Only "ok google" works, others don't. What could be the problem?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
The problem is the operating system. Please use Raspbian Stretch.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
And regarding the asoundrc thing, the codes that you have used does not make use of dnsoop plugin so you may run into errors, while running both the ok google ans snowboy. That could also be the another reason for the snowboy service restarting issue. Copy the contents of asound.conf file into the asoundrc.
@danielh8050
@danielh8050 6 жыл бұрын
ok, I'll try to upgrade the os. thanks.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
First try changing the asoundrc to match the asound.conf and restart. That should fix snowboy issue, else try using the raspbian stretch.
@danielh8050
@danielh8050 6 жыл бұрын
I tried everything from scratch again with the fresh and updated Raspbian Stretch. However, I still get this error on step 4.2 when trying the google-assistant-demo pi@raspberrypi:~ $ source env/bin/activate (env) pi@raspberrypi:~ $ google-assistant-demo [8359:8375:ERROR:audio_input_processor.cc(755)] Input error ON_MUTED_CHANGED: {u'is_muted': False} ON_START_FINISHED ON_ASSISTANT_ERROR: {u'is_fatal': True} [8359:8376:ERROR:audio_input_processor.cc(755)] Input error ON_ASSISTANT_ERROR: {u'is_fatal': True} Segmentation fault (env) pi@raspberrypi:~ $
@Pakawallygator
@Pakawallygator 6 жыл бұрын
Hey Sid, its all working great except the customs wake words. snowboy or alexa. I am using pi3 with the AIY hat? any thoughts?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
stop the snowboy using: sudo systemctl snowboy.service manually start the snowboy using: /home/pi/env/bin/python -u /home/pi/GassistPi/src/snowboy.py and post the output.
@lewisharris845
@lewisharris845 6 жыл бұрын
(env) pi@raspberrypi:~ $ sudo systemctl snowboy.service Unknown operation 'snowboy.service'. (env) pi@raspberrypi:~ $ /home/pi/env/bin/python -u /home/pi/GassistPi/src/snowboy.py Traceback (most recent call last): File "/home/pi/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: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pi/GassistPi/src/snowboy.py", line 1, in import snowboydecoder File "/home/pi/GassistPi/src/snowboydecoder.py", line 5, in import snowboydetect File "/home/pi/GassistPi/src/snowboydetect.py", line 21, in _snowboydetect = swig_import_helper() File "/home/pi/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: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory (env) pi@raspberrypi:~ $ Here is what i get
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
May i know as to when you cloned this project ? This is due to python2 snowboy files interacting with python3 google assistant. Download the _snowboydetect.so snowboydecoder.py and snowboydetect.py from here github.com/shivasiddharth/GassistPi/tree/master/src and replace the existing ones in the home/pi/GassistPi/src directory. Open a terminal and type the following: sudo rm /home/pi/GassistPi/src/_snowboydetect.so -y sudo rm /home/pi/GassistPi/src/snowboydecoder.py -y sudo rm /home/pi/GassistPi/src/snowboydetect.py -y This will remove the existing files now use the following commands to copy the files into that directory: sudo mv /home/pi/Downloads/_snowboydetect.so /home/pi/GassistPi/src/ sudo mv /home/pi/Downloads/snowboydecoder.py /home/pi/GassistPi/src/ sudo mv /home/pi/Downloads/snowboydetect.py /home/pi/GassistPi/src/ If you have a different location where you have downloaded the files then change the location accordingly. Do not try to directly download the files to src folder, it will not work.
@lewisharris845
@lewisharris845 6 жыл бұрын
I cloned it this morning, I will try this and let you know.
@lewisharris845
@lewisharris845 6 жыл бұрын
pi@raspberrypi:~ $ sudo systemctl snowboy.service Unknown operation 'snowboy.service'. pi@raspberrypi:~ $ /home/pi/env/bin/python -u /home/pi/GassistPi/src/snowboy.py Traceback (most recent call last): File "/home/pi/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: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pi/GassistPi/src/snowboy.py", line 1, in import snowboydecoder File "/home/pi/GassistPi/src/snowboydecoder.py", line 5, in import snowboydetect File "/home/pi/GassistPi/src/snowboydetect.py", line 21, in _snowboydetect = swig_import_helper() File "/home/pi/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: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory pi@raspberrypi:~ $ still ghet this
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Im sorry i'm lost already I started with fresh raspbian stretch desktop I downloaded the github zip file extracted it to the upper root pi folder then started doing the sudo commands I got to this and it stopped pi@raspberrypi:~ $ 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 what did i do wrong?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
oldfarmhand , I asked you to clone the project.. using that git clone command..
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Im sorry but I don't know how to clone a git file to a raspberry pi or to windows. I tried to watch videos but they talk about getting software to do that. do I need additional software? If I ever get it to the pi what do I do with the file then? I am just trying to learn and not be a pest. Thank you for your help.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
I had already mentioned that to clone the git, you need to use the git clone command. Open the terminal in raspberrypi, type the following command end press enter. git clone github.com/shivasiddharth/GassistPi After this, you will have a folder called GassistPi in the /home/pi/ directory. Open the readme and follow the instructions.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Else follow this noob friendly guide: hackaday.io/project/27105/instructions
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Thanks I got over that hurdle now I will move to the next one :-)
@massimodileo7169
@massimodileo7169 6 жыл бұрын
Hi Sid, it's me again... I've noticed that the overall sound quality is lower than what I get following your previous tutorials. The voice of the assistant isn't very clear, there's a lot of crackles. Any suggestion?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Ok-google hotword or custom wakeword or both ? WHat is the audio setup that you are using ?
@massimodileo7169
@massimodileo7169 6 жыл бұрын
Sid's E Classroom I think both. I use USB mic and jack audio port
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
frequency response of the jack is generally bad and that too when two services are using it simultaneously it will tend to be like that. Try using a USB DAC or some other DAC
@massimodileo7169
@massimodileo7169 6 жыл бұрын
I know Sid, there are a lot of static noises from the jack. But actually I'm referring to the voice quality. Using your previous files on GitHub (the ones based on Python3 if I well understand) the voice is clear (with the usual static noises obviously). With this new installation the voice is lot less clear. While the voice is reproduced there are more "crackle", like if there were possibly too many services (I can't say it). Probably I should record a quick video to let you hear the differences.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Python has nothing to do with the Jack audio. Its the number of services that is using it. No need to record any video, trust me i know how it will be for i have spent a ton of time in this project. DAC is the only solution for crappy Pi audio. It can be the cheap chinese USB DACs or the AIY HAT or the custom made HAT, there is a good number of audio DAC hats for pi. You can just use that for audio out and still use a USB mic.
@oldfarmhand7714
@oldfarmhand7714 6 жыл бұрын
Now its slowly starting to sink in how the google assistant works on a raspberry pi after talking with you and starting only half of google (just snowboy) I find google who I call kim does not have all of the smarts like she does with both of services running I find she can't answer a lot of general questions that she can answer with both services are running as well as timers and alarms. That's a pity because the sound is improved and I don't constantly have 2 services trying to answer questions slightly out of sink at the same time. o well I guess I Wanted my pi and eat it too get it :-) So to turn it back on I need to write sudo systemctl enable gassistpi-ok-google.service and then sudo systemctl start gassistpi-ok-google.service is this right? I know you have spent a lot of time with me and I do appreciate it. But you have taught me so much. and I know I only have learned a very small portion of what I need to know but it is a start. Thanks so Much
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Yes, that all you need to do to turn it back on..
@chetanapatil76
@chetanapatil76 6 жыл бұрын
Why we don't get action.py.. I'm using your repository GassistPi but there are no files like action.py, status_monitor.py, etc. Why is it like that.. Where to put those commands like of ktinkerer.co.uk/list-mods-raspberry-pi-aiy-project/ in which each project is related to action.py and voice-recognizer-pi
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
This is quite different from the AIY projects. In the next update of the AIY projects, it will start using a different API and you will not see the actions.py file even in the AIY projects.
@chetanapatil76
@chetanapatil76 6 жыл бұрын
So is there any way to integrate this mods in gRPC modules which I'm currently using..
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
It is really difficult to post the details here. Please be patient, i will update the git this weekend.
@mannynunez1481
@mannynunez1481 6 жыл бұрын
I started everything over from the beginning but I'm still getting errors at activating the environment on my pi zero with a DAC headseat on. pi@raspberrypi:~ $ source env/bin/activate (env) pi@raspberrypi:~ $ googlesamples-assistant-pushtotalk INFO:root:Connecting to embeddedassistant.googleapis.com Traceback (most recent call last): File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 11, in sys.exit(main()) File "/home/pi/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/home/pi/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/home/pi/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/pi/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/home/pi/env/local/lib/python2.7/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 275, in main flush_size=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: Unanticipated host API 0 error -22: u'Invalid argument' Just don't know how to address this. Any suggestions?
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Did you run the snowboy setup before the google setup ?
@mannynunez1481
@mannynunez1481 6 жыл бұрын
Yes sir. I followed your instructions exactly. I even started over several times. Can't figure what's going wrong...
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
Couple of questions ! If you start the snowboy service, the google assistant should work. Is it working? Second, did you install it in Raspbian Stretch or Jessie ?
@mannynunez1481
@mannynunez1481 6 жыл бұрын
Installed the latest Stretch from the Raspberry website. I get an audio prompt that snowboy service has started but it repeats every minute or so. No indication if GA is started...
@mannynunez1481
@mannynunez1481 6 жыл бұрын
My goals are simple ... I'm just hoping to get my pi zero w with GA which persists at boot. :-(
@nvl1109
@nvl1109 6 жыл бұрын
Hi, I'm trying the GassistPi with 2 SPH0645 (learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-and-test), the google voicekit (github aiyprojects-raspbian) works fine. But the snowboy.py cannot detect any wake words. Debug the GassistPi code, I saw the decoder got audio buffer normally, but RunDetection() always returns 0 github.com/shivasiddharth/GassistPi/blob/master/src/snowboydecoder.py#L162 . My ~/.asoundrc: github.com/nvl1109/aiyprojects-raspbian/blob/voicekit/scripts/asound.conf I try "rec t.wav", it runs but empty sound recorded. arecord works fine. Do you have any idea on my problem? Thanks.
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
If you want the mic to be used by multiple processes you need to use dsnoop plugin. Try changing the slave to slave.pcm dsnoop in pcm.mic YOu can do something better with the adafruit components have you seen this ? kzfaq.info/get/bejne/fbNhjMV_ssfZk58.html
@nvl1109
@nvl1109 6 жыл бұрын
Thank you. About the custom HAT kit with I2S amp and EEPROM, I don't have EEPROM and I2S amp then I just use I2S MICs for stereo microphone. About dsnoop, it is required if I use multiple processes a time, in my case, I only run 1 (snowboy or google voice kit) process a time. My target now is make snowboy work with my I2S MICs. I have add the micboost same as your suggestion. arecord can record my voice. But snowboy cann't recognize the hot words (likes alexa, Ok Google, ...). Any idea? Thanks.
@chetanapatil76
@chetanapatil76 6 жыл бұрын
How can i use this mods ktinkerer.co.uk/list-mods-raspberry-pi-aiy-project/ I don't have aiy voice kit...I'm using GassistPi
@SidsEClassroom
@SidsEClassroom 6 жыл бұрын
I have already included some good number of features and will be including servo control in the next revision. If you have some particular feature in mind which you think would be feasible to implement, you can post it here. github.com/shivasiddharth/GassistPi/issues/20 If
@eugenpopa3062
@eugenpopa3062 6 жыл бұрын
I'm sorry to tell you your video is what I need But your explanation is very bad if you can just start from the beginning how you make it (ex: for this project you need 1, 2, 3 -------- connecting the 1 to 2 like this ) and on the side of programing to be step by step I'm working to build a smart home I'm very new to programing to be more specific I don't know anything and I will really appreciate if you will make the tutorials more specific how to turn the light ON using voice commend on raspberry pi step by step I'm very sorry but I se that you have so many questions which is very hard to figure out how to change something ore how to add something when I don't know much about is gonna take you a little bit longer BUT is going to save a millions of viewers Time, Questions, and many other things and you can make multiple tutorials how to du a project , from the beguiling to the end and than-you for helping people like me (not very smart :) thanx
@shanecooper9990
@shanecooper9990 4 жыл бұрын
Fake that has Alex installed not Google or you would of changed it to something totally different
Hacking the Google AIY Voice Kit - Part 1
28:55
DroneBot Workshop
Рет қаралды 51 М.
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 25 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 59 МЛН
Installing Google Assistant SDK on the Rasperry Pi Zero W
21:51
Stefan Holodnick
Рет қаралды 7 М.
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Рет қаралды 804 М.
Voice Activated Google Assistant for Raspberry Pi
6:09
Novaspirit Tech
Рет қаралды 124 М.
Raspberry Pi Google AIY GPIO Voice Control
15:10
ExplainingComputers
Рет қаралды 72 М.
It’S So Fun To Wash My Son’S Hair! #funny #baby#cute  #funnybaby
0:14
Amazing Children Toys
Рет қаралды 11 МЛН
Triggle #настольныеигры #boardgames #games #игры #настолки #настольные_игры
0:48
Двое играют | Наташа и Вова
Рет қаралды 11 МЛН
Сделали биотуалет в мерседесе
0:37
Заботьтесь о любимых❤️🫶🏾 инст:sarkison7
0:58
SARKISONCHIK.OFFICIAL
Рет қаралды 4,5 МЛН
Не уступила место беременной и начались роды 😮
0:49
Фильмы I Сериалы
Рет қаралды 1,4 МЛН