esphome / firmware

Holds firmware configuration files for projects that the ESPHome team provides.
https://esphome.io/projects
Apache License 2.0
128 stars 93 forks source link

FEATURE REQUEST: listen tone instead of listen light #117

Open viperjet opened 6 months ago

viperjet commented 6 months ago

It's a feature request. In case of not always have a look on the atom 5 echo, it would be very nice to play a listen tone, eg. a simple beep instead of the light.

Is this possible?

Thanks, Udo

RemakingEden commented 6 months ago

I'd second this. It would be really helpful, if possible

Nardol commented 6 months ago

It could also enhance accessibility for blind users. I don't know how to generate raw audio, which is the only way to make a sound with speaker component. For media_player a sound can be played even if there would be some lag IMO.

umglurf commented 1 week ago

There are some possible solutions in https://community.home-assistant.io/t/play-sound-when-wakeword-detected/653928

To generate audio suitable for speaker.play, you can use the following commands (where INPUT_FILE is any kind of audio file that ffmpeg supports):

ffmpeg -i INPUT_FILE -ac 1 -acodec pcm_u8 -ar 16000 out.wav
sox out.wav --bits 8 --encoding signed-integer --endian little out.raw