You do need that PR, but it should work if you add it. See my config for the Muse Luxe above.
Any idea how I could get the actual audio output from ESPHome to debug what comes out there ?
See these docs on how you could capture and stream the audio data. You can microphone.capture, then on_data: send that data to a small HTTP server that can collect and save it for debugging purposes.
I can confirm that this does appear to work. it seems that I can’t change the playback volume but this does play the response tts. Here’s the yaml I’m using for my muse luxe, it could probably use a bit of cleaning up and a few more features but it works
The speaker component in ESPHome seems to have some buffering issues, but it does work with Piper. @jesserockz (maintainer of ESPHome) said he would look into this next week.
If your ESPHome is up to date and you’re not pulling in external_components that overwrite the speaker or i2s_audio components, just hard refresh the browser and it should work.
thanks that did it, i just copied the text from Zortan and it kept giving me red text
on my esp32 it didn’t work because i had two different pin sets for i2s (mic and speaker) which the speaker compnent doesn’t seem to support. besides the buffering issue it has, volume also still seems to be uncontrollable. not perfect but a step forward to finally hear a voice talking back
I don’t see the ES8388 component which I believe is needed in order to set up the audio codec for the Muse Luxe. Also thanks tetele and Deco, I hadn’t realized that all of these changes had been merged into the release version yet but it looks like they have been
Your understanding of “unneeded” seems to be very particular to what you think you need
Why do you have both a speaker and a media_player? Why do you stop the media player on_end if you’ve never started it? Why have you included your native API key?
Speaking of unneeded, why do you even bother with the LED if all you want is to send audio back and forth? What exactly is needed and by whom?
Why don’t you give it a go? That PR and external_component initializes the DAC. Yes, taking out the component from the config and reinstalling the ESPHome image does work until the first power cycle because the DAC is kept under power and doesn’t need to be initialized again. However, the first time you turn the speaker off and on again, say goodbye to your home assistant
Like I said before, please pay a bit more attention to what you do and don’t understand from the configs exposed here by you or others. You will only create frustration in people trying out your config if they find out it doesn’t work.
yes i was going to say the led stuff is unneeded but left if there for those that find it cool, waiting for mediaplayer isn’t needed and should be “speaker.is_playing” but since there is no idle condition on speaker component i left it as it was until that part can be corrected. (until more conditions are added to speaker). - this only means the led will turn off right when it replies and not AFTER it’s done speaking.
i’m not sure what your problem is with my posts, you seem to have a grudge against everything i post, and sorry i don not experience what you say, works just fine without, also after switching the power off/on.
The media_player is not needed at all if you have the speaker component tied to the voice_assistant.
You said that some most of the config I proposed (check out the older versions) was unneeded, the major differences to what you’ve posted being:
the fact that I’ve included a visual indicator of the speaker connecting to WiFi (LED blinking slowly in amber until connected, then a short burst of green flashes when it’s connected). I think that that’s also a “cool” feature. Not needed, just useful
an external service for starting the voice_assistant from another device (from HA). Very useful, if you ask me
the fact that I’ve disabled the button entity in HA (disabled_by_default: true), since there’s a “duplicate” indicator (“Assist in progress”, coming straight from the voice_assistant component). You said that disables the button, which it absolutely does not
There are a lot of people searching for info on getting their Luxes working as HA Assist satellites. This thread is one of the top results for such searches. Having wasted a lot of time in the past after being confronted with keyboard warriors who don’t know what they’re talking about (I’m not saying you are one, I’m just saying that’s what I’ve dealt with), I believe wrong posts should be corrected (by their original poster or by others) in high-traffic information sources in order to be helpful.
I don’t have a problem with your posts. I have a problem with the wrong information within them.
i see that is is infact a grudge because i said you had unneeded code in your example, thats ok keep having a bad day, all code i post is tested and runs without errors, which is more than i can say for most of the other examples.
i did not know i could do a NOT condition, thanks that solves that minor problem.
@Deco and @tetele please take this conversation off this post and into DMs. we don’t need this back and forth cluttering up the conversation for people looking for how to set up either their Muse Luxe or Muse Proto as a Home Assistant Voice Assistant
I have yet to try it but for those that would rather not deal with configuring yaml and building code it looks like a basic version of voice assistant support has been added to the Muse Luxe here
I haven’t had time to test it but looking at the config for the Muse Luxe the tts responses from piper will most likely not work but everything else should
The reason I’m asking is that – well – it isn’t working for me on my Muse Luxe. I’m getting a media_url sent over (sometimes raw and sometimes mp3) but nothing plays other than a “pop.”