I would try to install Piper on my self installed Home Assistant on a RPI4 (Raspian + venv + pip install), but I can’t found information about the process. The existing doc only talk about the installation of the HA OS addon.
Me too. I managed to install piper and openai-whisper pip modules, but those don’t show up in integrations. Something else needs to be done before that?
Pro tip, if you go changing the Piper voices or some configuration in Piper or Whisper you have to restart the addon and then reload the relevant Wyoming integration before the Assist bit will detect the configuration change.
I didn’t install piper and whisper but it would be nice if someone who manage to make this work on docker installation wrote guide on how to install this in docker.
Well basically it’s simple to install whisper and piper.
I used this for piper and this for whisper.
Pull the container,change path to your path and run it. Rename containers to something like wyoming-piper and wyomin-whisper and add wyoming integration. For host I selected localhost and for port 10200 and 10300 and that was it.
Whisper and piper arre recognized in home assistant.
I didn’t select anything. I done exactly what i wrote:
pull image
change -v /path/to/local/data:/data
to -v /opt/whisper-piper/data:/data
and run the container.
I just renamed container and add wyoming integration selecting localhost and port. And that was it.
Edit:
I created new voice assistant to check if everything is working properly. Tested on my mobile phone and everything is working. It does recognize speech.
Hi,
I just tested your docker-compose and this is working, no problems at all. Thank you for posting this.
Do you maybe know how to add more languages to whisper container?
I’m currently running HA on a RPI4, therefore I would like to keep the non-essential and CPU intensive tasks (frigate, tts, stt) on a separate host. It sounds like the Wyoming protocol will allow me to run piper and whisper on my Proxmox box so I don’t overload the Pi. Is there more documentation on this use case? Have others setup and tested this type of a configuration?
I tested configuration from @koying and this works with out any issue. I didn’t test configuration from @bjorn.sivertsen because I currently don’t have time do to it, but I will.
I don’t use pi because I think that you need a desktop comp for running ha and there is no need in for separate hosts if you are using docker. You can easily limit cpu and memory usage in docker like this
This is for my frigate config. My average cpu usage is about 23% running 22 containers on Intel(R) Core™ i3-4130 CPU @ 3.40GHz. For doc you can check around net, but this doesnt have a lot of impact on my system. Maybe around 0.5% to 1% of cpu usage.
I installed piper/whisper on a separate docker host and wanted to use the highest quality english model. it took 4 full CPU cores for abour 12 seconds before coming up with an answer to a short request.
I happened to have a beefy server avaiable, so I did some digging and found that you can passing this environment variable: OMP_NUM_THREADS=8 will allow the whisper process to use 8 cores instead of just 4.
yes, im using medium-int8. I’m at 12 cores now with beam-size 5, and i think i’m getting around 10 seconds. i might just throw an insane number of cores at it just to see what it does…