BUILD YOUR OWN GOOGLE HOME 2.0! Raspberry Pi Google Assistant Tutorial 2021!

  Рет қаралды 112,285

Dial Pixel

Dial Pixel

4 жыл бұрын

Updated tutorial on how you can build your own Google Assistant using a raspberry pi. As for the previous video, the google assistant hotword is still not functional and therefore we can use only the push to talk feature!
[] Support us on Patreon if this helped you out: / dialpixel
Requirements:
1)Raspberry Pi (Any model should do) with raspbian
2)USB Microphone or Analog Microphone + USB DAC
3)Speakers
4)Functional PC
------------------------------
Support our channel by buying from one of these amazon affiliate links:
Canakit Raspberry Pi Model 3B+: amzn.to/2w2NR7G[Recommended]
Canakit Raspberry Pi Model 4: amzn.to/33TIDHL
JBL Charge 3: amzn.to/3bBPCb2
Gears I used in the making of this video:
Logitech MX Master 2S: amzn.to/2QUNYJM
LG 29" Ultrawide Monitor: amzn.to/2UqUSIx
Sony RX100 MIII Camera: amzn.to/3aueRvN
Blue Yeti Microphone: amzn.to/3bBhbBm
------------------------------
Links:
Follow the whole project at:
developers.google.com/assista...
Google Console Actions Dashboard:
console.actions.google.com
APIs and Services:
console.developers.google.com...
Activity Controls:
myaccount.google.com/activity...
Paste this in the asoundrc file:
pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw:[card number],[device number]"
}
}
pcm.speaker {
type plug
slave {
pcm "hw:[card number],[device number]"
}
}
Google Authentication command: Please use the one provided in the video as youtube shortens the link.
------------------------------
Music:
------------------------------
Dolce Vita by Peyruis / peyruis
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/dolce-vita-peyruis
Music promoted by Audio Library • Dolce Vita - Peyruis (...
------------------------------
🎵 Track Info:
Title: Dolce Vita by Peyruis
Genre and Mood: Dance & Electronic + Funky
---
🎧 Available on:
Spotify: spoti.fi/2OJ4evj
iTunes: apple.co/2sgYjpQ
KZfaq: • Peyruis - Dolce Vita
SoundCloud: / dolce-. .
Google Play: bit.ly/GooglePlay-Dolce_Vita
---
😊 Contact the Artist:
peyruismusic-74.webself.net
/ peyruis
bit.ly/GooglePlay-Peyruis
deezer.com/us/artist/14466991
/ artist .
open.spotify.com/artist/6qu7S...
kzfaq.info/love/J-LrG53...
/ peyruismusic
/ peyruismusic
---

Пікірлер: 308
@ms-jahan
@ms-jahan 3 жыл бұрын
Thank you bro. I wasn't selecting actual project between 2:59 to 3:03 according to your video. Thanks man!
@manuelandre7052
@manuelandre7052 4 жыл бұрын
Hey 👋🏽, great tutorial could you please make another one on using wakewords to activate google assistant and maybe another one to be able to stream music form KZfaq? It would be awesome if we could use the full potential of this system. Anyway keep up the great work dude🙂
@rexonp
@rexonp 3 жыл бұрын
Very well explained. Thank you very much.
@stevelarry154
@stevelarry154 4 жыл бұрын
Awesome tutorial! Thanks a lot
@arvindcuber4401
@arvindcuber4401 4 жыл бұрын
It worked love u bro.Thank you very much...
@sallyoussouf5933
@sallyoussouf5933 4 жыл бұрын
you made a great tutorial guy, congrat. I just have 2 questions, how can I change the language from English to french? and how to use it just saying google instead typing enter? Thank in advance
@digitalclampmeter619
@digitalclampmeter619 4 жыл бұрын
thank you finally work, now how can i put push button to trigger google assistant?
@andyjame2583
@andyjame2583 11 ай бұрын
like the features, setup was difficult for some of my devices (August Door lock, kzfaq.infoUgkxhB5YOMNj04GuoAosExygP4cH-dKeb4aB Bose speaker)... but all switches and outlets (5), thermostat, tankless water heater. Unfortunately all I can do is turn on/off Bose. It doesn't support volume or changing channels, but I believe that is due to the particular speaker I have.... Worth getting if you already have other devices to use it with... I don't sit around and ask Alexa questions much so that doesn't really matter to me....
@FisherPric3
@FisherPric3 3 жыл бұрын
Once setup will this device function as a Spotify connect speaker like the google home mini does? id like to use this to create my own version of the discontinued Chromecast audio essentially.
@RubixMan99
@RubixMan99 4 жыл бұрын
Does this also act as an audio cast device like the normal google homes, e.g for spotify/tidal?
@thisanchesbr
@thisanchesbr 4 жыл бұрын
Hello from Brazil! I followed your tutorial and everything worked. However, as I understand it, the Google Assistant library has been discontinued for the Raspberry Pi. Some commands, such as routine Google commands ("Bedtime", "Good morning") do not work on the Raspberry. Do you know if there is another way to make them work? Another question, how do I make the Google Assistant on the Raspberry start up every time the Raspberry is turned on? Without having to enter the codes in the terminal every time? Thanks!
@emax2000
@emax2000 2 жыл бұрын
Hi and thanks for the tutorial, I wanted to know if it is possible to change assistant language
@marciskregers7200
@marciskregers7200 4 жыл бұрын
Omggg im excited!
@HowToPCYT
@HowToPCYT 3 жыл бұрын
This video is uploaded in my B day!
@dlanzer
@dlanzer 4 жыл бұрын
You are awesome man🙏
@riyarafeek7609
@riyarafeek7609 2 жыл бұрын
beri informative thank uuu saaaar
@jovs1407
@jovs1407 4 жыл бұрын
How can i make this assistant work with the push on a button instead of pushing enter. Also what do i need to do to make it all work again when you reboot the pi?
@evelyndayanaramedinagonzal9192
@evelyndayanaramedinagonzal9192 4 жыл бұрын
Hello,im from mexico. Whai if i want another device than just the speaker ? If want to turn the lights on and off whenever i want to, how should i do it?
@erbasandrade
@erbasandrade 4 жыл бұрын
Great job was exactly that, an updated video that I was looking to use with my raspberry 2. I have a USB DAC in it is connected the microphone and the speaker. USB DAC Identical to your previous video. Detail my microphone does not have a driver! My question which audio settings should I use?
@DialPixel
@DialPixel 4 жыл бұрын
You should click on the speaker icon on the taskbar and select your respective microphone and speaker.
@xainisheikh
@xainisheikh 4 жыл бұрын
Good work, can we use it to play Spotify music or google "Routines", any way to login with our native Google account? Thanks
@cardansan
@cardansan 4 жыл бұрын
I think that when you link it up with the Oauth (the URL that the Terminal gives you) you need to connect it to your Google account and that way it has access to your routines and devices
@CAPSTV
@CAPSTV 4 жыл бұрын
Very Good Project!!
@jonathangoveas2865
@jonathangoveas2865 3 жыл бұрын
Nicely done.
@sost.4388
@sost.4388 4 жыл бұрын
Is there a way to turn on hotword in Google Assistant 2.0? Previous deprecated version have that feature..
@EmilePolka
@EmilePolka 2 жыл бұрын
bluetooth speakers available in the market usually have mic as well, can we use that instead as the input/output device for audio?
@drewwalker101
@drewwalker101 2 жыл бұрын
When you have everything just about done you mention at 7:49 that you need to be in python environment, do I just type source env/bin/activate and then press return? I just don’t see anything going on in terminal regarding environment besides the (env) before pi@raspberry
@DanPeaks
@DanPeaks 3 жыл бұрын
This is possible to make a shourcut on pi deskop or autorun to this ?? With something like a "macro on terminal"
@Mikkommj
@Mikkommj 4 жыл бұрын
I'm currently stuck with OAuth client id type, what should it be? @DialPixel
@carlamannon4974
@carlamannon4974 3 жыл бұрын
I have a pi 3b. Will this work with mine? I have a USB mic and speaker so no issue there but do I use the aux for the speaker or USB?
@djeanql
@djeanql 4 жыл бұрын
8:59 I saw that overheating warning...
@shoaibrana7914
@shoaibrana7914 3 жыл бұрын
can we use bluetooth mic. and speaker for audio in/out purpose?
@bryanjonasis8359
@bryanjonasis8359 4 жыл бұрын
THANK YOU!!!
@bencozeus9177
@bencozeus9177 4 жыл бұрын
Thanks you sooooo much
@PixelPioneerV
@PixelPioneerV 3 жыл бұрын
It’s not possible as the software used for a normal google home is different to what is used in video
@soubhikkhan6239
@soubhikkhan6239 3 жыл бұрын
can you pls show how to activate the assistant using wake words/hotword ? also this doesn't play music from youtube!
@eldin90
@eldin90 3 жыл бұрын
How long does it take for the "python -m pip install --upgrade google-assistant-sdk[samples]" command to finish? I've been waiting for more than an hour and it's still stuck at "Building wheel for grpico (setup.py) ..."
@angadchahal
@angadchahal 4 жыл бұрын
Dial Pixel, i've connected my speakers with the Pi but I am not able to set it as the default audio....on clicking at the audio bar at the top right of the screen, it only shows the audio bar but no option to set the defualt input and output audio devices....
@jovs1407
@jovs1407 4 жыл бұрын
Can someone explain to me how to auto start this assitant service when the pi reboots. Also how to add a push button. The assistant is working on my pi now when i push enter. But is don't find a way to configure the push button and make it all work again after a reboot.
@TheSleepPrinter
@TheSleepPrinter 3 жыл бұрын
Hey wonderful video, but when I click the link following the instructions in 7:16, it says invalid_scope...pls help me out
@tanishkprem7422
@tanishkprem7422 3 жыл бұрын
i want to use 3.5mm jack microphone can I use USB soundcard
@sinixfroster845
@sinixfroster845 4 жыл бұрын
Sir, Can i activate this machine by saying "okay google"??? Please answer
@ccynical2573
@ccynical2573 2 жыл бұрын
will this work with the raspberry pi zero? will there be slowdowns if i do use the zero?
@andraskarolyi6919
@andraskarolyi6919 3 жыл бұрын
hy! this is working with bluetooth speaker/mic?
@FreddyBirch
@FreddyBirch 2 жыл бұрын
Somehow i've got some trouble finding the "Device Model ID", is this the same as the Procect ID or project number?
@arunnair4130
@arunnair4130 3 жыл бұрын
Hey can u make an video on how to add an wake word led to Google assistant
@karthikkeyan2590
@karthikkeyan2590 4 жыл бұрын
awesome tutorial video bro. But how to use google assistant without press button and make it auto boot in Magic Mirror?
@jirka4344
@jirka4344 3 жыл бұрын
Hello I'm just wondering whether the mic has to be USB with the speaker being aux or wether I can use Bluetooth speaker with an aux mic
@DialPixel
@DialPixel 3 жыл бұрын
It has to be USB or aux.
@bartbrouwer1742
@bartbrouwer1742 4 жыл бұрын
Is it able to link to your Google home app and controlle the other Google home devices
@VIGOH223
@VIGOH223 4 жыл бұрын
It still working without data traffic from the wifi red?
@hamzaali9959
@hamzaali9959 4 жыл бұрын
i need your help my keyboard is not connecting to keyboard which keyboard should i use??
@imnotste7384
@imnotste7384 4 жыл бұрын
Hello from Italy :) Is It possible to use bluetooth earphones as audio input and a bluetooth speaker as output? :) Kind regards, and tysm for the video
@kirankanwar8676
@kirankanwar8676 4 жыл бұрын
You can just buy a blietooth receiver with dual pairing. And insert it in the usb port of raspberry pi. Hope this helps!
@renumishra2290
@renumishra2290 3 жыл бұрын
Do we have to press enter key each time to ask a question??
@spencerpaule9463
@spencerpaule9463 3 жыл бұрын
Hi DialPixel, im stuck with the error sounddevice.PortAudioError: Error opening RawStream: Device unavailable [PaErrorCode -9997] after running the last command... been looking some answers around github and more site still unlucky to have one. TYIA!
2 жыл бұрын
Hi! Thanks for the Vid! i made it on R Pi Zero 2W. But I always stuck at the Sample command... It says: warnings.warn("Global variable '%s' in cdef(): for consistency " Error: no such option: --project-id Could you please help me? Tnak you!
@imypabloxeonalv
@imypabloxeonalv 3 жыл бұрын
When i put the command googlesamples-assistant-pushtotalk --project-id (project id) --device-model-id (model id) says "illegal introduction", someone have this problem?
@TedyBun1IF
@TedyBun1IF 4 жыл бұрын
(press enter to send a new request?) every time you use to press enter or automatically detect your voice?
@greggregowki2840
@greggregowki2840 4 жыл бұрын
You have to press the button every time ...
@paimonbutter
@paimonbutter 3 жыл бұрын
can you add the new nest hub max facial recognition feature
@mancalibra
@mancalibra 4 жыл бұрын
Thanks!!!!
@marine1718
@marine1718 4 жыл бұрын
O have orange oi zero with por melhor Inwill upgrade tô this One os it possible t9 runat startup?
@DeepPatel-lz8fj
@DeepPatel-lz8fj 3 жыл бұрын
I am getting an error when foing te following command "env/bin/python -m pip install --upgrade pip setuptools wheel" please help me out
@allurijyothisrishankar6350
@allurijyothisrishankar6350 3 жыл бұрын
Can we use Google assistant after restarting without the terminal is there any way
@termineitor270
@termineitor270 4 жыл бұрын
Can I connect to the google application?
@rahmataulia
@rahmataulia 4 жыл бұрын
hey dial pixel i want to ask, raspberry pi can program using infrared to translate as enter button? i mean when the data from infrared is: if data is 0.3 < then translate as enter button and we can use that like hotword.. :D
@DialPixel
@DialPixel 4 жыл бұрын
You should be able to build that using an infrared receiver.
@ShubhamRamtirth
@ShubhamRamtirth 4 жыл бұрын
Hey I am getting error like "Traceback (most recent call last): File "/home/pi/Desktop/env/bin/googlesamples-assistant-pushtotalk", line 5, in from googlesamples.assistant.grpc.pushtotalk import main File "/home/pi/Desktop/env/lib/python3.7/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 28, in import grpc ModuleNotFoundError: No module named 'grpc'
@papadingding4889
@papadingding4889 3 жыл бұрын
can you ask it to turn on the lights and stuff
@justanotheruser206
@justanotheruser206 4 жыл бұрын
can i ask something like play this on youtube?
@YourArkaShines
@YourArkaShines 4 ай бұрын
Everything is good in alexa and google assistant in raspberry Pi but they removed the wake word engine in their api so we have to use push to talk also if u add some other wake word engines it won't work sadly :(
@TheMightyKinkle
@TheMightyKinkle 3 жыл бұрын
I have got it working eventually and it understands my commands. However i cannot hear her talk back. My speakers are fine and pass all the tests
@federicomilano5272
@federicomilano5272 2 жыл бұрын
hi! Thank you for your video. All is ok until "enter authorization code:". I open the url and the response is: "Authorization Error Error 400: invalid_request You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure. You can let the app developer know that this app doesn't comply with one or more Google validation rules. Please,can you help me? Thank you very much.
@ubacow7109
@ubacow7109 3 жыл бұрын
Will this work w/ Pi Zero W?
@dlanzer
@dlanzer 4 жыл бұрын
Bro I was finished all steps Google home was worked. But the power OFF then ON isn't work then I give register command it work again. How can I fix this issue
@berkaktuna6472
@berkaktuna6472 4 жыл бұрын
Hi! Thank you for everything but I have one question how can I make with hotword
@RevenMoodley
@RevenMoodley 4 жыл бұрын
I believe there is no support for that from google at this current time.
@siddharthajith881
@siddharthajith881 3 жыл бұрын
Is there any way to stream music?
@Ahmad-hi9qr
@Ahmad-hi9qr 3 жыл бұрын
Great tutorial bro Does it work with the google home app?
@MarekBury
@MarekBury 3 жыл бұрын
I'm also very curious if it is compatible with google home and if its possible to connect into the group @Dial Pixel
@RomanOnARiver
@RomanOnARiver 4 жыл бұрын
Is there a way to get a visual response in addition to the audio response such as with the nest home or Lenovo smart display?
@vincentmanlesis8698
@vincentmanlesis8698 2 жыл бұрын
What python version do you use? Or anyone can suggest what version it will work? Please help me😭
@jyelacio2082
@jyelacio2082 3 жыл бұрын
can i use a bluetooth speaker with microphone
@rajnishrohit513
@rajnishrohit513 4 жыл бұрын
What is the command for auto run the raspberry pi
@MareksDunkurs-ic7jx
@MareksDunkurs-ic7jx 9 ай бұрын
can u ask assistant to play music from youtube?
@Juanipis19
@Juanipis19 4 жыл бұрын
¿How enable "Ok google" in my assistant? i don't like the enter buttom
@PLAY_WITH_GD
@PLAY_WITH_GD 3 жыл бұрын
Can i use pi zero w model
@subramanyak8080
@subramanyak8080 3 жыл бұрын
The last command to get the link is showing that command not found plz tell
@toxicbeesting6689
@toxicbeesting6689 4 жыл бұрын
can you change the voice? if so how?
@xdholopro7553
@xdholopro7553 4 жыл бұрын
Hi how do i activate always lisening
@blindstick4969
@blindstick4969 4 жыл бұрын
sir in last command i got error of the raise port error plz help sir
@chi-ming8520
@chi-ming8520 3 жыл бұрын
The lack of OK google is a dealbreaker for me. Can anyone confirm whether or not Amazon Alexa has all features? (i.e. is it on par with its hardware equivalent)
@tanishkprem7422
@tanishkprem7422 3 жыл бұрын
great video buddy just one question rpi3b could run it?
@DialPixel
@DialPixel 3 жыл бұрын
Yes for sure!
@tanishkprem7422
@tanishkprem7422 3 жыл бұрын
@@DialPixel do you know picroft
@egomalego
@egomalego 4 жыл бұрын
I'm getting the error ModuleNotFoundError: No module named 'pathlib2'
@Josiah_Kee
@Josiah_Kee 4 жыл бұрын
It can't work. When I typed in the last code, it says there's no portaudio detected
@n.steenvoorde
@n.steenvoorde 4 жыл бұрын
It works here in The Netherlands (in dutch language also ;-)). One question: "Is there a way of pulling the command by pushing the button of my google voice hat (v1)?" I think it needs some editing the config but where? Great workaround by the way.
@ivanm0656
@ivanm0656 4 жыл бұрын
Did you find it?? I would like to use that functionality
@zaydnashed9839
@zaydnashed9839 4 жыл бұрын
Hi, my name is Zayd and I tried to move step by step with you but in the last piece of instruction I added tha model and project Id Unfortunatly it gave me an Error saying: Invalved sample rate[PaErrorCode -9997] Do you know what does it mean, and what should I do?
@DialPixel
@DialPixel 4 жыл бұрын
Hello Zayd, did you get an output with the aplay command? Usually it's your speaker/microphone that is not set correctly.
@markh8901
@markh8901 3 жыл бұрын
Question, can camera be added to do video calls?
@sagarrane3816
@sagarrane3816 3 жыл бұрын
Yes , you have to configure the pi accordingly
@tanishkprem7422
@tanishkprem7422 3 жыл бұрын
How could I add led to it
@robotleena7798
@robotleena7798 3 жыл бұрын
env/bin/python -m pip install --upgrade pip setuptools wheel /home/pi/env/bin/python: No module named pip Please tell me , How to fixed it?
@sistemasembebidos2783
@sistemasembebidos2783 Жыл бұрын
Hola, me sale este error: Error 400: invalid_request No puedes acceder a esta app porque no cumple con la política OAuth 2.0 de Google para proteger las apps. Puedes notificar al desarrollador que esta app no cumple con una o varias reglas de validación de Google cuando intento entrar al link para el codigo de verificacion
@giuseppecorino1309
@giuseppecorino1309 4 жыл бұрын
Nice Video! only one problem, at the final step to run the google assistant from the shell it won't work, is telling me "google:command not found"... btw there is any way to keep it up and running automatically at any reboot?
@DialPixel
@DialPixel 4 жыл бұрын
Make sure you are in the python environment by using this command: source env/bin/activate Then use the googlesamples command.
@giuseppecorino1309
@giuseppecorino1309 4 жыл бұрын
​@@DialPixel, mine was a misspelt command... there is any way to make it automatized without pressing enter and after make the question? and make it start at every reboot?
@thephysicsflight7841
@thephysicsflight7841 4 жыл бұрын
@@giuseppecorino1309 same question here....!
@jashsangani1254
@jashsangani1254 4 жыл бұрын
-bash: googlesamples-assistant-pushtotalk: command not found showing this error how to solve it using pi 3b+
@soostieger
@soostieger 3 жыл бұрын
When i open up the Google Login URL which i get out of the console, it says error 400: invalid_scope Can someone help me out?
@AmarisTechChannel
@AmarisTechChannel 3 жыл бұрын
is this working now days?? any have feedback
@magnaflowhd
@magnaflowhd 4 жыл бұрын
When i type python -m pip install --upgrade google assistant-sdk[samples] It says Error could not find version that satisfys the requirment assistant-sdk[samples]
@DialPixel
@DialPixel 4 жыл бұрын
You missed a a hyphen. It's google-assistant-sdk[samples]
@ManHaru1
@ManHaru1 4 жыл бұрын
Can I use DietPi firmware for this project? No gui, just console
@DialPixel
@DialPixel 4 жыл бұрын
You should be able to do it
@im.n0body
@im.n0body 3 жыл бұрын
Can i use rasberry zero
How I Made My Own Smart Speaker Google + Alexa - Under $30
10:26
DD ElectroTech
Рет қаралды 2,6 МЛН
Raspberry Pi Projects
11:57
TJ FREE
Рет қаралды 1,7 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 105 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 133 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 79 МЛН
HOW TO -  Create a Raspberry Pi Smart Home Kiosk (Home Assistant)
17:56
Mark Watt Tech
Рет қаралды 144 М.
BUILD YOUR OWN AMAZON ALEXA ASSISTANT - Powered by Raspberry Pi
12:10
Voice Activated Google Assistant for Raspberry Pi
6:09
Novaspirit Tech
Рет қаралды 124 М.
PiCroft - Build your own Voice Assistant
10:24
DrZzs & GrZzs
Рет қаралды 155 М.
Top 10 Uses for a Raspberry Pi (400th EC video!)
11:24
ExplainingComputers
Рет қаралды 238 М.
Raspberry Pi 400: New All-in-One Pi!
14:34
ExplainingComputers
Рет қаралды 842 М.
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 654 М.
EXEED VX 2024: Не өзгерді?
9:06
Oljas Oqas
Рет қаралды 49 М.
Самый тонкий смартфон в мире!
0:55
Не шарю!
Рет қаралды 167 М.
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 27 МЛН