georgezhao2010 / apple_airplayer

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

reinstall mminiaudio each new version of Homeassitant #13

Open steve41200 opened 2 years ago

steve41200 commented 2 years ago

Do you know if their is a system to avoid reinstall mini audio each time we update Homeassistant ? minimum 1 time per month ...).

Your add on is. exactly what I'm searching to use my HomePod, but it's annoying to reinstall mini audio each time I update Homeassistant

sdeagh commented 2 years ago

Can you describe in more detail how you update miniaudio. I have ssh'd onto my instance of HA but the 'pip3 uninstall --yes miniaudio' command just staes that miniaudio is not installed.

I'm using the community ssh and terminal logging onto my instance running in a VM on my windows pc.

Many thanks

MarkusFelix commented 2 years ago

You need to run the installation in the docker-container not on the host docker exec -it homeassistant /bin/bash here 'homeassistant' is your container name - usually that's homeassistant but you can find out by issuing docker ps | grep supervisor the part in front of the / is the container name.

Then just run as the documentation states

apk update
apk add build-base
pip3 uninstall --yes miniaudio
pip3 install miniaudio
DogParty commented 2 years ago

Do we still need to reinstall miniaudio? I just installed Airplayer on HassOS 6.6 x86-64 v2021.11.5 and it worked without having to reinstall miniaudio.

Fannangir commented 2 years ago

I have used portainer to access supervisor container. It didn't have miniaudio installed at all. I have tried to install, it did install successfuly, but TTS does not work. Any other options to check?

Another question, how to play any audio file on the homepod mini via HA?