georgezhao2010 / apple_airplayer

Make your AirPlay devices as TTS speakers
MIT License
130 stars 17 forks source link

Home assistant restarts when TTS is used #21

Closed Fannangir closed 2 years ago

Fannangir commented 2 years ago

Hi, In the last version of HA, OS 6.6, Supervisor 2021.10.8, Core 2021.11.5, HA server restarts if TTS is used. miniaudio is not installed by default in this version. Tried to install it, still same behavior.

Is there any solution to make the integration work?

Thanks.

Dodoooh commented 2 years ago

same problem here.

already tried many things that have previously helped as a fix but without success

garanda21 commented 2 years ago

Still happens on 2021.12 RC, logs are not very helpful:

today at 20:57:01[finish] process exit code 256 today at 20:57:01[finish] process received signal 4 today at 20:57:01[cont-finish.d] executing container finish scripts... today at 20:57:01[cont-finish.d] done. today at 20:57:01[s6-finish] waiting for services. today at 20:57:02[s6-finish] sending all processes the TERM signal. today at 20:57:05[s6-finish] sending all processes the KILL signal and exiting.

georgezhao2010 commented 2 years ago

I guess you used HASSOS and didn't run the commands in the HA docker.

  1. In HASSOS, type login and enter, type root and enter.
  2. Run docker exec -it homeassistant /bin/bash into your HA docker.
  3. Run the following commands
    apk update
    apk add build-base
    pip3 uninstall --yes miniaudio
    pip3 install miniaudio
Fannangir commented 2 years ago

Tried it as well, no luck. Found the following: https://github.com/postlund/hass-atv-beta Works like a charm out of the box, including artwork, control and TTS.

Fannangir commented 2 years ago

@georgezhao2010 , you are right, it solves the issue. I have missed the restart following the reinstallation of miniaudio. Thanks for the tip.