synesthesiam / homeassistant-satellite

Streaming audio satellite for Home Assistant
MIT License
186 stars 23 forks source link

Playing wake sound repeteadly many times without any trigger #43

Open lightsabata opened 11 months ago

lightsabata commented 11 months ago

Hi, sometimes the wake sound is played repeteadly around 10 times witouth any ask for wich is very annoying especially at night, the weird part is that i have not seen any obvous error on the log i run the program as user and i havent got any problem when i use rhasspy on satellite mode a as user:

 CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/homeassistant-satellite.service
             ├─545 python3 /home/<MYUSER>/homeassistant-satellite/script/run --awake-sound sounds/wake.wav  --host <MYHAHOST> --token <MYHATOCKEN>
             ├─549 /home/MYUSER/homeassistant-satellite/.venv/bin/python3 -m homeassistant_satellite --awake-sound sounds/wake.wav  --host <MYHAHOST> --token <MYHATOCKEN>
             └─560 arecord -r 16000 -c 1 -f S16_LE -t raw

Oct 21 09:29:31 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono
Oct 21 09:29:32 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono
Oct 21 09:29:33 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono
Oct 21 09:29:34 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono
Oct 21 09:29:35 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono
Oct 21 09:29:36 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono
Oct 21 09:29:37 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono
Oct 21 09:29:38 raspberry homeassistant-satellite[10336]: Playing raw data 'stdin' : Signed 16 bit Little Endian,  Rate 22050 Hz, Mono

Does anybody encounter the same behaviour ?

cburghardt commented 11 months ago

I noticed this behaviour when I changed something in the HA pipeline. Not sure if that was related though.

lightsabata commented 11 months ago

Can you remember what changes you’ve made ? I start to think that it’s maybe not homeassistant-satellite fault but maybe the Wyoming wake word program I use porcupine and i saw that synesthesiam has just pull a commit few hours ago to correct memory leak on it, maybe it is related.

Johnson145 commented 11 months ago

This happens to me when I restart the open wake word addon on HA. E.g. after changing the sensitivity value. The sattelite immediately starts to repeat the wake sound again and again (much more often than just 10 times in my case though).

gigawebs commented 10 months ago

This happens to me when I restart the open wake word addon on HA. E.g. after changing the sensitivity value. The sattelite immediately starts to repeat the wake sound again and again (much more often than just 10 times in my case though).

Having the same issue. Happens we restarting the open wake word container. The satelite immediately starts to repeat the wake sound again and again until I start the open wake word container.