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
    --------------------------------------------------
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 49

  • @RocketBoom1966
    @RocketBoom1966 6 หลายเดือนก่อน

    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.

    • @SmartHomeCircle
      @SmartHomeCircle  6 หลายเดือนก่อน

      Thanks a lot for such kind words 😄. Glad I could help.

  • @Jmcinally94
    @Jmcinally94 6 หลายเดือนก่อน +1

    Hadnt considered using another speaker as the TTS output, smart!

  • @hmautomate3364
    @hmautomate3364 3 หลายเดือนก่อน

    Great explanation

  • @Idut017
    @Idut017 5 หลายเดือนก่อน

    Its working on nabu casa cloud too..without install piper add on..thanks for video

  • @cvasantrao
    @cvasantrao 5 หลายเดือนก่อน

    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?

    • @SmartHomeCircle
      @SmartHomeCircle  5 หลายเดือนก่อน

      You don't need the audio amp. You can just make use of the microphone.

  • @easwaran83
    @easwaran83 5 หลายเดือนก่อน

    Great Video. This meas in your ESP32 build, u just need Mic, No amp & speaker circuit as its taken care by google home

    • @SmartHomeCircle
      @SmartHomeCircle  5 หลายเดือนก่อน +1

      Yes. Speaker setup is not required.

  • @mariuspeltea2279
    @mariuspeltea2279 2 หลายเดือนก่อน

    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?

    • @SmartHomeCircle
      @SmartHomeCircle  2 หลายเดือนก่อน

      Can you tell me what error you are facing with Whisper? you can check the logs for the error.

  • @mejnour1
    @mejnour1 6 หลายเดือนก่อน

    gracias!

  • @viktorg2765
    @viktorg2765 4 หลายเดือนก่อน

    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?

    • @SmartHomeCircle
      @SmartHomeCircle  4 หลายเดือนก่อน

      May be it could be done. But I am not aware about it. Its also a good idea.

  • @Canny121986
    @Canny121986 4 หลายเดือนก่อน

    Hey great Video, is it also possible to edit m5 Echo Atom? Id Like another Entity to respond, too.

    • @SmartHomeCircle
      @SmartHomeCircle  4 หลายเดือนก่อน +4

      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 😉

    • @redaste
      @redaste 2 หลายเดือนก่อน

      yes please 🙂@@SmartHomeCircle

  • @Foggy3657
    @Foggy3657 6 หลายเดือนก่อน

    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?

    • @SmartHomeCircle
      @SmartHomeCircle  6 หลายเดือนก่อน

      Can you check the yanl configuration in my blog post. I think there are some fixes for wake word getting stuck.

    • @Foggy3657
      @Foggy3657 6 หลายเดือนก่อน

      Thank you. It seams to work now.
      @@SmartHomeCircle

  • @frankyjunior6005
    @frankyjunior6005 4 หลายเดือนก่อน

    can i set google home to take action from home assistant too instead of just replying the command?

    • @SmartHomeCircle
      @SmartHomeCircle  4 หลายเดือนก่อน

      Can you give me an example of what kind of action?
      In the video I using it as media player.

  • @ChestysBBQ
    @ChestysBBQ หลายเดือนก่อน

    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".

    • @SmartHomeCircle
      @SmartHomeCircle  หลายเดือนก่อน

      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

  • @mirceadomsa
    @mirceadomsa 4 หลายเดือนก่อน

    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...

    • @SmartHomeCircle
      @SmartHomeCircle  4 หลายเดือนก่อน +1

      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.

  • @Nick_1976
    @Nick_1976 4 หลายเดือนก่อน +1

    Well this work with Alexa ?

    • @SmartHomeCircle
      @SmartHomeCircle  4 หลายเดือนก่อน +1

      Check if you can play media via Alexa from Home Assistant. If that works then it will work with Alexa.

  • @aroundus7408
    @aroundus7408 5 หลายเดือนก่อน

    Can you help: Whisper log: Service exited with code 256 (by signal 9)? My voice assistant cannot run with speech-to-text failed.

    • @SmartHomeCircle
      @SmartHomeCircle  5 หลายเดือนก่อน

      Strange.. didn't see such an error. How are you running it? Using docker or HA addons.?

    • @aroundus7408
      @aroundus7408 5 หลายเดือนก่อน

      @@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

    • @SmartHomeCircle
      @SmartHomeCircle  5 หลายเดือนก่อน +1

      @@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.

    • @aroundus7408
      @aroundus7408 5 หลายเดือนก่อน

      @@SmartHomeCircle yeah, thank you again, i will change to Nuc

  • @Mr-Coke
    @Mr-Coke 3 หลายเดือนก่อน

    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.

    • @SmartHomeCircle
      @SmartHomeCircle  3 หลายเดือนก่อน +1

      That's awesome.
      If you are on twitter, post about your build.

    • @Mr-Coke
      @Mr-Coke 3 หลายเดือนก่อน

      ​@@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;

    • @Mr-Coke
      @Mr-Coke 3 หลายเดือนก่อน

      @@SmartHomeCirclewhen its finished i will do.

    • @Mr-Coke
      @Mr-Coke 3 หลายเดือนก่อน

      @@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;

    • @Mr-Coke
      @Mr-Coke 3 หลายเดือนก่อน

      @@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

  • @OrpinSmartTest
    @OrpinSmartTest 2 หลายเดือนก่อน

    how i add google home to home assistant?

    • @SmartHomeCircle
      @SmartHomeCircle  2 หลายเดือนก่อน

      If you have configured google home mini with your wifi network, it should be auto discovered in Home Assistant connected to the same wifi..

  • @user-bu5ri7ze4q
    @user-bu5ri7ze4q 2 หลายเดือนก่อน

    my URL page is not load....please help