Building a Local Smart Home Voice Assistant With ESPHome!
Vložit
- čas přidán 20. 10. 2023
- Home Assistant has finally added the long awaited wake word feature to their local voice assistant, which is amazing news as it means you can now control your smart home locally with just your voice. Today we go through how to setup Home Assistants voice assistant and how you can build your own with an esp32, a microphone, amplifier and speaker using ESPHome.
Parts:
ESP32: shop.everythingsmart.io/produ...
Other ESP32s: amzn.to/3rTYUgq
Microphone: amzn.to/3Q2ULyF
Amp: amzn.to/3Qpb5LA
Speaker: amzn.to/3QqZ4oV
ESPHome Code:
gist.github.com/EverythingSma...
ESPHome beginners guide:
• This is SO Much Better...
Patreon:
/ everythingsmarthome
Buy Me a Coffee:
www.buymeacoffee.com/EverySma...
Written Article:
everythingsmarthome.co.uk
EVERYWHERE YOU CAN FIND ME:
Shop:
shop.everythingsmart.io
Everything Smart Home Community Discord:
discord.everythingsmarthome.c...
Twitter: / everysmarthome (@EverySmartHome)
Instagram: / everythingsmarthome
Facebook: / everythingsmarthomeoff...
#homeassistant #smarthome
________________________
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you! - Věda a technologie
Thanks so much for making this video, Lewis! I would absolutely buy mic add-ons for my EP1's :) Also a small note: you can test wake word detection via the pipeline debug panel now too.
Thanks Mike, totally forgot to mention that and it's useful for testing!
A collab between @HexiBase and@@EverythingSmartHome would be really nice.
Who else is waiting for another product that beats out the big manufacturers with all the features the community wants from Lewis for this? :D
facts
I am very much waiting for it haha
Any requests?
@@qwertyuiop8642 A esp based addon for assist to allow voice control
My Presence Lite arrived today, really impressed with the kit so far, just need to spend some time getting it configured, thanks Lewis!
Also ordered several presence lite. Looking forward to try them out. But yeah why not stick a microphone on the boards on either ep1 or lite. I don’t care about speaker confirmation everywhere. Could just be a led. Just have to fit in the box. 😊
But yeah wonder what it would take to make a device to run wakeword locally and create a nice case for it. 🤔
I'd love your Everything Presence One with voice assistant integrated into one device!
Would also be great if it could directly disable the microphone if no presence is detected, rather than go through an automation?
Now that I think about it, that sounds great to me.
I guess I'll try to build one such myself next year. Been wanting to DIY something with ESP for a while now.
Thank you. I've been (lazily) waiting for a full local tutorial. Much appreciated.
Loved this video! I’m an Arduino project builder and IT person and have HA running in a docker container. Will be getting hold of an ESP32 to give this a go, after watching the ESP Home intro video first! You also have yourself a new subscriber!! Keep up the good work!!
I'd really love if you could provide a kit to upgrade existing fp1's as well as an option to buy the whole setup at once. The optional ability to have the mic disabled when no presence would also be great :) Keep up the good work.
great video. I'm really excited about what's to come.
Since I have 7 EP1s in operation myself, I would be happy to receive a kit to be able to use the voice function.
such a kit with microphone and loudspeaker would be cool and maybe a new housing to print yourself 😂
I think the ways they've come for a private voice Assistant is amazing, even just getting wake words to work fairly decent. I am satisfied with it even being processed by the HA server locally, as the traffic never leaves the internal LAN, and if you pair it with something like the EP1 with automations the bandwidth really becomes negligible
Microphone for EP Lite would be good too, mine just arrived today - thanks Lewis for designing these products!!
As usual, great video.
And yes. We absolutely want to see an add-on board with microphone and speaker. Maybe even an additional LED to show if it is listening for wake word.
Would also be nice if the microphone could do double duty and listen for sounds in a more general way. Like any sound. "Trigger, if sound level is above xx dB."
homeassistant gets better and better so nice to see the progess
Excellent news! I can live with wakeword detection being done centrally rather than on device, especially since the required bandwidth per device is quite low.
If anything it adds more flexibility since you could dynamically switch the pipeline and associated wakeword depending on who is home or present in a particular room (multi-lingual family / friends and relatives coming to visit / etc.)
Great job HA team!
Just waiting for the pipelines to be able to know what area the calling device is in now, then it'll be perfect (eg: say "turn the light off" rather than "the the kitchen light off") There is an open pull request for this so hopefully soon!
Great video & hope you are not affected by the storms - stay safe and well.
Lewis...anxiously awaiting YOUR I2S microphone breakout board!!! Great video as always, many thanks!
So great seeing all this strung together after the gradual releases this year!
So EP-1 Pro with speaker and mic when? 😉
Okay, Lewis you need to bundle the voice features into your EP1 hardware! Just throw one in each room and 💥BOOM💥 you have all you need for hands free human interaction!
I could see that as the backbone to my HA set up. Great stuff as usual buddy!
Man I have to give this a try! Would love to have the response play back on a speaker already in that room like Sonos or heos. With it either pausing the media playing or lowering the volume in that room so it can hear better.
Yes! Microphone add on to EP1 would be awesome! 👍
Another fantastic video! Hope you've got some time off planned....you've been one busy dude!
Yes, I would love a speaker+mic combo for the EP Lite!
This is awesome. Can’t wait to spend way too much time on integrating this 😂
Haha story of my life 😂
Brilliant works a treat, cant wait for this voice assist to mature, thanks for the video
Can’t wait to try. Thank you for this!
I just built this a few days ago and it is awesome, especially because google home and alexa don't support my language and while i'm fine with English, it is more natural to speak your day by day language when using home automations.
Yes!!!! Microphone accessory for EP1. Maybe speaker too if possible...? New 3D Printed case with speaker at back maybe?
Adding a mic and speaker to the presence detectors would be very cool
I love my EP1, it is so cool. But I think I am going to wait until the EA1 (Everything Assistant One) to add local Voice Assistant to HA.
I’d also love to see a Docker/ Unraid video as well. As always, love your videos!
Picard walks into his readyroom and says : " Computer, lights! "
FYI I have connected 40W 4" speaker from FaitalPRO to my echo device and it outputs a crazy amount of volume, more than enough for music listening in 500sqft room. These speakers are very sensitive and perfect for ceiling-mounted smart speakers.
Ideally, I'd like the EP2 (hint) to have the built-in microphone with on-device wake word, and the speaker be configurable in the response from Home Assistant so that it can output the voice response from the voice assistant through something like a Sonos speaker associated with the same room where the voice assistant was activated from (the room the EP2 is associated with).
This would fit perfectly in the EP!
That would be awesome to have a microphone built into the EP devices. If you do go down that route please add the ability to easily disable the microphone.
I just purchased EP1 and would love the addition of microphone and speaker.
13:16 Lewis I love your humility. You could have easily mentioned the fantastic presence sensor that you sell here, but you chose not to :)
Fantastic video as always! Thank you for all you've done for this community!
Thanks for watching 🙏🏻
It's sweet and really amazing. Nice video :D Thank you
Very very cool! This is now my next project, thanks Lewis 😎
Have fun and good luck! 🙌
This is great! I am hoping someone will design a half way decent 3D printed case to put this ESP32/speaker setup in so it can look halfway presentable. Until then I've ordered an M5 to play with.
Thank you for this video it has helped me out alot.
As if you needed to ask... Yes please for a mic for the EP1!
Personally I'm easy about a speaker, depends how loud/clear it can be in a busy kitchen and what sort of new case it would need.
Perhaps it might be possible to cast response audio to an existing Google speaker, if that's not too laggy...
Edit: Actually perhaps bluetooth would be faster, always forget they do that.
Yes, if your presense sensor also included a mic and (maybe) mini speaker so i could use it for wake word stuff, I'd buy one for every room in my house (slowly, but i'd get there).
I was thinking this exact same thing.
Keep up the good work 👏
This video is beyond epic ❣
This is legitimately exciting
Yes yes yes, I would love the microphone add on for the EP1. That would be perfect. Also, hoping they add "computer" to the wake word list soon. All us star trek fans will be waiting xD
Computer already exist with porcupine1 addon
@@Krull56 ah good too know
Brilliant video thanks. Waiting for a how to guide to set this up on a pi 3b use some of that old Tec up.
I need HA to brew tea and bring it to me 😄
this is pretty huge. i stepped away from HA because i was able to accomplish everything in another platform, but being able to self-host a voice assistant is huge. i might just have to load up HA again
Yes please do the microphone for the everything presence one. Thank you
absolutely add a mic as an accessory for the ep1!!!!!!
great explanation Lewis, getting closer to general consumer level, are you going to create a new EP1 Kit with a voice assistant included?
hey great video thanks :) yeah Id total buy an add on mic for my EP1 that would be a great way to add voice control without needing something else sitting around.
Definitely want a mic accessory for the EP1🤟
Hey Lewis, great video as always. If I understand you correctly, I could utilize my four EP1 as microphones? Or is it either presence detection or voice? A combination of both would be awesome
yes please on the additions for EP1 and EPlite. :)
Wow thanks for the info
awesome thanks!
I hope this leads to us being able to have custom voice assistant voices... celebrities/characters etc
Nice as always ;)
Thanks! 🙏🏻
Just an FYI: With that inmp441 the data sheet says that in mono applications the L/R pin should be pulled low so that it is assigned to the Left channel to reduce interference.
this is awesome!
Thanks once more Lewis, straightforward step by step guide, as always! Also, +1 for the EP1 mic add-on module! Any idea if USB mic arrays like the Seeed Studio ReSpeaker work with Home Assistant?
I'd like to know this as well. I have a respeaker in a drawer since playing with rhasspy a while back
great video again, i believe they did just announce that you can build a satellite that runs Wake Word detection directly on it, can you do a video on how to build one? Id really love that.
You're going to make me start soldering things again and remember my college days in engineering. I drank a lot of alcohol along the way to forget those days. LOL
Hahaha sorry about that 😂
5:55 "you should see that all three services now show up" .. yeah, or not :D why am i not surprised? That's HomeAssistant :D
You need som kind of box for the speaker to make is sound better.
I remember I found a lid that was the perfect size for one of those speakers a few years ago.
Just some hot glue and it will be a major difference
Thank you, this video is yet another great one like many you do. I have followed it to make my own less the speaker. Almost all look good, device seems to be up and running however, no response and "Assist in progress" is off. any help to debug would be great
This sounds like an amazing feature and I'm sure I'll come up with lots of ways to use it.
Question: Can you configure an existing smart device, such as Amazon Echo or Google Home, to act as the voice command trigger / responder for the new voice assistant function within Home Assistant?
Thank you for the very informative video and the detailed explanation, great job, as always!
As someone that is about to pick up a EP lite kit, Would you make a video about adding the microphone into the EP1 and the EPL?
Thanks Lewis for another great video. I would like to know, how it could be accomplished to implement a sound feedback instead of status LEDs on such a voice assistant. For example I would like to have some Startrek computer sounds to show if the command was understood or not. The "usual switched on" or "switched off" is rather long and in fact really useless. Perhaps this is an idea for an follow up video?
Thanks again for your great work. Cheers Wilhelm
Hi Lewis, fantastic and informative video as usual. I have bought the ESP32 chip from the store, wired it up following the video instructions. HA recognises the ESP device and everything seems to be configured OK. It is my first time with ESPHome / electronics and so am a complete newbie. I have set-up the voice pipeline and it works from my laptop browser microphone and speaker. However, the Assist button doesn't come on at all when I speak to the ESP microphone at all. Please can you advise where I should begin trying to resolve and get this exciting project working. Any hints would be gratefully appreciated either from you or the wider community. Thanks in advance for any ideas you could provide.
Thank you for sharing! Trying to get it to work on the esp muse luxe speaker. But haven't got too far. (Video request ☺️) Also want to run the models on my blue iris machine as it has more power. Currently what works well for me is willow on an espbox :)
Great video! How did you go about tuning the noise_suppression_level, auto_gain and volume_multiplier? Is it just trial and error? How do you know which one to tweak based on what is being understood by whipser?
Some rtttl buzzer can be attached and trrigered on listen and on end action for listening sound.
Maybe you can do a video on the creative "containers" viewers create for their home. (Like the R6, I'm sure others will come up with fascinating devices.)
I've got 3 EP lites on the way, would love to look at including this feature. Main issue wouldn't be sourcing the parts and wiring it myself but having a suitable enclosure to hold the new components in. Any thoughts of making a 3D printable enclosure file available to print that can hold the components recommend in this guide?
Can we use this without having SSL setup locally, or without Nabu cloud? It doesnt work through the HA app. It would be awesome to see you do a video on how to get local SSL up and running. Love your content!
Finally! Wake words.
P.S. I am waiting for delivery on an EP lite so yes, I would be interested in adding mic and speaker.
Great video as always! I have a couple of esp32 camera board installed and connected to HA, would it be possible to add the mic to this board and use it as a voice assistant in combination with the camera?
Great video thank you! The local processing of your voice happens very fast. Where do u have HA installed? On my setup it’s really slow and looking for a nuc, but don’t really know which one I should get…
Thank you for the great video. Would like to buy upgrade kit for all my EP1s. Cool. Please proceed....
Great video! Just a quick question, is it possible to use the microphone and speaker of a tablet that is serving as a wall mounted dashboard?
Be well up for a pre-made device Lewis 🎉
EP lite with speaker and mic could be sick :O
Thanks for this but my heart sank when I saw you mention ESPHome. I consider myself competent with technology and have Home Assistant voice control working on my Intel NUC via a cordless phone with Grandstream VOIP and through the Companion app. However, it would be an understatement to say that ESPHome had me pulling my hair out when I tried to set it up with an Atom Echo. I read every available instruction and spent literally days trying to set it up - a total of at least 30 hours. I found Home Assistant/ESPHome's own instructions ambiguous and unhelpful. I had an Echo device that was recognised by the system but wouldn't do anything, then on attempting to reinstall it, a whole raft of different problems ending with a persistent encryption error that, according to ESPHome's documentation, had been fixed a month earlier! I finally gave up and binned the device for the sake of my mental health. Since it means going into ESPHome again and adding custom hardware, I won't try to follow your process but instead wait for further developments in input devices.
As always, a great video. I cant get past testing the speaker on my PC (it has a red exclamation mark next to it). (Running HA on RaspPi, accessing HA from firefox or chrome). I'd love a video on how to setup https locally (if this is what is needed to make it work). Subscribed to home assistant cloud and use that for google integration / remote access
Interesting vid, thanks for putting this together.
I have succeeded getting this work on Arduino framework, instead of esp-idf. What's the reason for/upside of using esp-idf?
Hi Lewis, this is great!!! I have already builded this Voice assistant and it is working !!!!!! I do have an additional question. Is possible to set this "ESP voice assistent device" also as a media_player entity? To stream also other tts messages to this device? Thank you. Prem
The thing we most urgently need is an out-of-the-box S2T engine with the voice of GLaDOS :p
What I would love to see is:
* A way to talk to assist programmatically (rest API?)
and get a response back, to do local TTS and/or STT
* A way to "talk" to assist using some existing chat system (IRC, XMPP, mattermost) etc
Or
Thank you lots for this example and the Code. I was trying to do it with the instructions for ESP32 from the Chapter 4 Blog post. But it only refers to the code for the M5 and it is missing a wiring diagram. Without any knowledge about I2S i got stuck pretty fast... 🤪
HI Lewis... amazing videos, do you have any info on how to get th ESP muse lux for wake words?? I have 2 and cant get it to work... thanks
I’ve been making a local voice assistant in Python as a side project for a while now. It’s really cool that home assistant makes it so easy to make your own.
But I’m curious if there’s a way to tie the 2 together as I don’t want to just scrap the original project I’ve been working on?
It's happening!🎉
Think you might include speaker/mic in the next iteration of the Everything Presence 2?
Hi Lewis, i think your videos are great, what do you think about creating a video and selling the hardware to create a voice assistant device that can replace my google boxes around the home? I have home assistant all configured but the hardware is either poor quality or difficult to get hold of for real room voice assistant replacement. Hope this makes sense.
If the future roadmap might put processing on the mic/speaker device instead of the hub, does it make sense to only treat this current solution as a bit of fun rather than splurging out and setting one up in every room (like I'm itching to do 😂)?
Thanks for the video, Lewis! I'm trying to build one (or more) of these, but the Amazon link for the "Other ESP32s" has a completely different pinout mostly marked with D{number} or RX{number} This is my first ESPHome project, so I'm a bit confused. Can you point a newbie to a resource to figure out which pins can be used here? In particular, there's no 5V pin on that version.
Mic add-on for EP1 please!!!! It would be the ULTIMATE SENSOR!