How to manually install Piper and whisper on Home Assistant core

I would try to install Piper and whisper on my self installed Home Assistant on a RPI P3b+ (Raspian + venv + pip install), but I can’t found information about the process.

Docker Install

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.

https://community.home-assistant.io/t/how-to-manually-install-piper/568040/9?u=msly

1 Like

As you tag me, this is my docker-compose configuration for those. If someone needs it

## wyoming
  whisper:
    container_name: whisper
    image: rhasspy/wyoming-whisper
    command: --model tiny-int8 --language en
    volumes:
      - /opt/whisper-data:/data
    environment:
      - TZ=Europe/Vienna
    restart: unless-stopped
    ports:
      - 10300:10300
### 
  piper:
    container_name: piper
    image: rhasspy/wyoming-piper
    command: --voice en_US-lessac-medium
    volumes:
      - /opt/piper-data:/data
    environment:
      - TZ=Europe/Vienna
    restart: unless-stopped
    ports:
      - 10200:10200
4 Likes

Thanks for sharing!

Thanks for sharing!

Btw, has anyone got this to actually work? It writes down what I say and can speak so that part works but it literally cannot run any action. I say “turn off the master bedroom light” and it tells that that there is no device with that name even though it’s literally the name I gave it in Home Assistant. Google Home has no problem with the same command.

same as follow?

INFO:faster_whisper:Processing audio with duration 00:03.840
INFO:wyoming_faster_whisper.handler: Turn off the light.
INFO:faster_whisper:Processing audio with duration 00:03.780
INFO:wyoming_faster_whisper.handler: Turn off the light.
INFO:faster_whisper:Processing audio with duration 00:03.230
INFO:wyoming_faster_whisper.handler: Thank you.
INFO:faster_whisper:Processing audio with duration 00:03.480
INFO:wyoming_faster_whisper.handler: Turn on the light.
INFO:faster_whisper:Processing audio with duration 00:02.960
INFO:wyoming_faster_whisper.handler: turn off the light
INFO:faster_whisper:Processing audio with duration 00:03.320
INFO:wyoming_faster_whisper.handler: Turn off the light.
INFO:faster_whisper:Processing audio with duration 00:02.760
INFO:wyoming_faster_whisper.handler: turn off the light
INFO:faster_whisper:Processing audio with duration 00:03.820
INFO:wyoming_faster_whisper.handler: Turn off the file.
INFO:faster_whisper:Processing audio with duration 00:04.480
INFO:wyoming_faster_whisper.handler: Turn off the file.
INFO:faster_whisper:Processing audio with duration 00:03.780
INFO:wyoming_faster_whisper.handler: Turn off the file.
INFO:faster_whisper:Processing audio with duration 00:03.340
INFO:wyoming_faster_whisper.handler: Turn off the file.
INFO:faster_whisper:Processing audio with duration 00:03.180

You have those lights exposed and have aliases set up for them? What does the voice assistant debug logs show? Go to Settings > Voice Assistants and click the 3 dot menu beside the assistant you setup with whisper and piper and click Debug.

You have those lights exposed and have aliases set up for them?
yes