How To Play LOCAL Voice Assistant Audio From ESP32 On A Media Player | Google Home Mini Speaker
ฝัง
- เผยแพร่เมื่อ 2 มิ.ย. 2024
- In this video we will look at how we can play the output of our voice assistant running in an ESP32 on an external speaker using the media player entity in Home Assistant.
You can read about it here: smarthomecircle.com/created-v...
How to setup Voice Assist Pipeline with Whisper, Piper and Open Wake word : • How I Setup LOCAL VOIC...
How I created my Voice Assistant Device: • How I CREATED My Voice...
==========
Components Used In the Voice Assistant :
==========
ESP32 WROOM : AliExpress: s.click.aliexpress.com/e/_DB4...
Amazon US: amzn.to/45vab4p
Amazon DE: amzn.to/3FbreOc
LED Strip WS2812B :
AliExpress: s.click.aliexpress.com/e/_DCY...
Amazon US: amzn.to/3R99biv
Amazon DE: amzn.to/40NLnE7
INMP441 Microphone :
AliExpress: s.click.aliexpress.com/e/_Dmn...
Amazon US: amzn.to/3GdxO7o
Amazon DE: amzn.to/47uScws
===========
You can support my channel :
===========
Buy Me a Coffee : www.buymeacoffee.com/amrutprabhu
Patreon : / amrutprabhu
PayPal : www.paypal.com/paypalme/amrut15
===========
Follow me on X : / smarthomecircle
===========
===========
Smart Home related board To Buy:
===========
ESP32 WROOM : AliExpress: s.click.aliexpress.com/e/_DB4...
Amazon US: amzn.to/45vab4p
Amazon DE: amzn.to/3FbreOc
D1 Mini : AliExpress : s.click.aliexpress.com/e/_DEG...
Amazon US: amzn.to/3RPY5zH
Amazon DE: amzn.to/3PO5jSd
===========
Gear I use :
===========
Sony Alpha a6000 : Amazon India : amzn.to/3RM7QMJ
Germany : amzn.to/3G1Iw24
US : amzn.to/3cpKZ9E
UK : amzn.to/3J0g5Ry
Razer Microphone : Amazon India : amzn.to/3aQxI9C
Germany : amzn.to/3DRRrAh
US : amzn.to/3ITKu3Q
UK : amzn.to/3v3RHbU
--- Chapters --------
00:00 - Introduction
00:44 - Requirements - Voice Assist Pipeline Setup
01:27 - Testing Media Player Output With Piper TTS
03:14 - ESP32 ESPHome YAML Config
03:40 - Voice Assistant With ESP32
05:57 - Installing Code Wirelessly With ESPHome
07:27 - Important: Provide Service Call Permissions
08:05 - Testing The Output On Google Home Mini
09:21 - What's coming Up Next?
Music Credits:-
Sappheiros - Rain
----------------------------
Social Media
TH-cam / sappheiros
Spotify goo.gl/hE9MDJ
Twitter SappheirosMusic
Instagram sappheirosmusic
Facebook SappheirosMusic
Discord discord.gg/Pk87yN9
/ rain1
-------------------------------------------------- - วิทยาศาสตร์และเทคโนโลยี
Really enjoying this series of videos. I've just wired up the voice assistant hardware as you did, but on a breadboard. It works quite well. Looking forward to the next one.
Excellent channel, keep up the good work.
Thanks a lot for such kind words 😄. Glad I could help.
Hadnt considered using another speaker as the TTS output, smart!
Great explanation
Its working on nabu casa cloud too..without install piper add on..thanks for video
Excellent video!. If I am connecting the voice assistant to google mini, do I still need the MAX98357A module or the just the microphone would do?
You don't need the audio amp. You can just make use of the microphone.
Great Video. This meas in your ESP32 build, u just need Mic, No amp & speaker circuit as its taken care by google home
Yes. Speaker setup is not required.
HI, I appreciate very much your tutorials and I tested this esp32 satellite on HA using a Rpi4, 8G and a google home mini. Everything looks great, except whisper, doesn't work, despite I followed all your steps. It's the only issue. Piper works great. Can you help me?
Can you tell me what error you are facing with Whisper? you can check the logs for the error.
gracias!
You're welcome 🙂
Great! Is it possible to play local voice Assistant audio on a Google Home Mini Speaker without ESP 32, just using for voice commands USB microphone?
May be it could be done. But I am not aware about it. Its also a good idea.
Hey great Video, is it also possible to edit m5 Echo Atom? Id Like another Entity to respond, too.
Yes. The atom config is available on github which can be modified.
I see many have asked about it, I might make a video about it 😉
yes please 🙂@@SmartHomeCircle
Thank you for the video, however, It works 1st time with the wake word but not if I try it again. I have to restart home assistant for it to work with the wake word again. Any ideas?
Can you check the yanl configuration in my blog post. I think there are some fixes for wake word getting stuck.
Thank you. It seams to work now.
@@SmartHomeCircle
can i set google home to take action from home assistant too instead of just replying the command?
Can you give me an example of what kind of action?
In the video I using it as media player.
Anyone have an idea how to add a "pause" in the listening? I do something similar to this video but I have it say a response to my wake word. Unfortunately this speech is being picked up by the mic and it doesn't know what to do with it so I get the "sorry, I couldn't understand that".
May be you can take some code from this new micro wake word setup. It has a mute button setup: smarthomecircle.com/How-to-setup-on-device-wake-word-for-voice-assistant-home-assistant
Sorry, I don't understand well: need or not need microphone?
I try to use Esp32 S2 (um_tinys2 platform ) and receive this error message:
[19:43:43][E][voice_assistant:458]: No API client connected
I want to use google home mini...
So you need the microphone and the ESP32.
The output will be your google home mini.
The error you are getting is when the ESP32 is not connected to Home Assistant. You will have to add it to HA.
Well this work with Alexa ?
Check if you can play media via Alexa from Home Assistant. If that works then it will work with Alexa.
Can you help: Whisper log: Service exited with code 256 (by signal 9)? My voice assistant cannot run with speech-to-text failed.
Strange.. didn't see such an error. How are you running it? Using docker or HA addons.?
@@SmartHomeCircle thank you for respone. My HASS run on Pi 3, i had installed whisper addon. I think, maybe the Pi's RAM is too little
@@aroundus7408 ohh.. running on the pi will not give you good results. It needs quite some processing power and ram. I would advise you to run it on a more powerful machine.
Like e.g I bought a second hand mini pc i5 6th gen from ebay for around 100 euros and running this setup.
@@SmartHomeCircle yeah, thank you again, i will change to Nuc
Working perfekt. For Alexa Speaker i must adjust the media player code. The MIC was 4m from me away. I put it in a lego technik dodge car. And it recognice the wakeword from this distance. perfekt. thank you.
next step du put an led stribe on it than the car light go on when wakeword detekted.
That's awesome.
If you are on twitter, post about your build.
@@SmartHomeCirclei will do when i am finished. at the moment i have a code problem. maybe you can help here.
this here workes fine:
on_tts_start: # this is required to play the output on a media player
- homeassistant.service:
service: tts.cloud_say
data:
entity_id: media_player.echo_wohnzimmer
message: !lambda 'return x;'
...........................................................
but then alexa is talking with here voice. I want that alexa talk with the voice from home assistant
so this code is working on the services when i test this.
service: tts.cloud_say
data:
cache: false
entity_id: media_player.echo_buro
message: >-
Hello this code here is working
language: de-DE
options:
voice: ChristophNeural
-----------------------------------
but when i will use this code above in the esp i got this message:
Must be string, got . did you forget putting quotes around the value?.
on_tts_start:
- homeassistant.service:
service: tts.cloud_say
data:
Must be string, got . did you forget putting quotes around the value?.
cache: False
language: de-DE
options:
voice: ChristophNeural
entity_id: media_player.echo_wohnzimmer
message: !lambda |-
return x;
@@SmartHomeCirclewhen its finished i will do.
@@SmartHomeCirclei have a code problem can you help please?
what does this mean?
service: tts.cloud_say
data:
Must be string, got . did you forget putting quotes around the value?.
options:
voice: ChristophNeural
entity_id: media_player.echo_wohnzimmer
message: !lambda |-
return x;
@@SmartHomeCircle on services when i test it. then this code work. But on esp it must be a other format?
service: tts.cloud_say
data:
cache: false
entity_id: media_player.echo_buro
message: >-
Hello this code here is working
language: de-DE
options:
voice: ChristophNeural
i want that alexa is speaking with the speach from HA
how i add google home to home assistant?
If you have configured google home mini with your wifi network, it should be auto discovered in Home Assistant connected to the same wifi..
my URL page is not load....please help
Which url page?