Voice support

The Voice support integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] lets you test the next generation of voice in Home Assistant.

It connects Home Assistant to the Voice Support app, which gives a second opinion on what your voice satellites hear:

  • Wake word verification: Your satellite detects its wake word on the device itself. That check has to be quick, so it is a little eager. When a satellite wakes up, Home Assistant sends the audio to the app, which checks it with a much larger model. If it was not really the wake word, for example when the television said something that sounded like “Okay Nabu”, the command is dropped and nothing happens.
  • No pause after the wake word: You can say the wake word and your command in one go, for example “Okay Nabu, turn on the lights”. Without next-generation voice, your satellite plays a wake sound, and you wait for it before you speak. With next-generation voice turned on, there is no wake sound.
  • End of command detection: The app also listens for when you stop talking. It is better at hearing quiet voices and children, so your commands are cut off less often.

Next-generation voice is a preview feature in Home Assistant Labs. It is still in development and may change.

Prerequisites

  • A voice satellite that sends Home Assistant the audio from just before it woke up. The Home Assistant Voice Preview Edition needs the beta firmware for this. Refer to Installing the beta firmware.
  • Wake words the app can verify. It currently verifies Okay Nabu, Hey Jarvis, and Hey Mycroft. Every wake word that is active on the satellite must be one of these. If a satellite also has another wake word active, for example a custom one, Home Assistant verifies none of its wake words.

Satellites and wake words that are not supported keep working exactly as they do today, without the second opinion.

Installing the beta firmware on the Voice Preview Edition

  1. Go to Settings > Devices & services and open the device page of your Voice Preview Edition.
  2. Under Configuration, enable the Beta firmware entity. It is disabled by default. Refer to enabling an entity.
  3. Turn on Beta firmware.
    • Result: The device’s firmware update entity now offers the beta firmware.
  4. Install the firmware update.

Turning on next-generation voice

  1. Go to Settings > System > Labs.
  2. Turn on Next-generation voice.

What happens next depends on how you run Home Assistant:

  • Home Assistant OS: Home Assistant installs and starts the Voice Support app and sets up the integration for you. There is nothing else to do.
  • Home Assistant Container: You need to run the Voice Support app yourself. Follow the steps in Running the app in a container.

The first time it starts, the app downloads a speech model of about 174 MB. Until the download has finished, wake words are checked without it.

Running the app in a container

If you run Home Assistant in a container, Home Assistant can’t install apps for you. Run the standalone image of the app instead, on the same machine or on another one on your network.

Docker Compose

services:
  voice-support:
    container_name: voice-support
    image: ghcr.io/ohf-voice/app-voice-support-standalone:latest
    network_mode: host
    volumes:
      - ./voice-support:/data
    restart: unless-stopped

Docker CLI

docker run -d \
  --name voice-support \
  --network=host \
  -v /PATH_TO_YOUR_DATA:/data \
  --restart=unless-stopped \
  ghcr.io/ohf-voice/app-voice-support-standalone:latest

The app listens on port 10900. The /data volume keeps the downloaded speech model, so it is not downloaded again when the container is recreated.

Home Assistant and the app talk over unencrypted HTTP, and that traffic includes the audio from your satellites’ microphones. Run the app on a trusted network, and do not expose port 10900 to the internet.

With host networking, the app announces itself on your network and Home Assistant discovers it. If you cannot use host networking, publish the port instead with -p 10900:10900 (or ports: ["10900:10900"] in Docker Compose) and add the integration manually.

Connecting Home Assistant to the app

Turn on Next-generation voice in Labs first. Until you do, Home Assistant ignores the app. If the app was already running before you turned on the feature, restart Home Assistant or add the integration manually.

You can connect Home Assistant to one Voice Support app. If Home Assistant discovered the app, it shows up under Settings > Devices & services. Select Add to set it up. Otherwise, add the integration manually:

Configuration

To add the Voice support service to your Home Assistant instance, use this My button:

Voice support can be auto-discovered by Home Assistant. If an instance was found, it will be shown as Discovered. You can then set it up right away.

Manual configuration steps

If it wasn’t discovered automatically, don’t worry! You can set up a manual integration entry:

  • Browse to your Home Assistant instance.

  • Go to Settings > Devices & services.

  • In the bottom right corner, select the Add Integration button.

  • From the list, select Voice support.

  • Follow the instructions on screen to complete the setup.

Host

The hostname or IP address of the machine running the Voice Support app.

Port

The port the Voice Support app listens on. The default is 10900.

Keep the app up to date. If Home Assistant and the app use different protocol versions, the integration doesn’t connect and asks you to update the app or Home Assistant. On Home Assistant OS, Home Assistant keeps the app it installed up to date for you.

If the app is stopped

Nothing stops working. Wake words are accepted without the second opinion, and Home Assistant detects the end of your command itself. This is how your satellites behave without the app.

Turning off next-generation voice

Turn off Next-generation voice in Settings > System > Labs.

On Home Assistant OS, Home Assistant automatically removes the integration and uninstalls the Voice Support app it installed. It makes a backup of the app first.

If you installed the app yourself, or run it in a container, Home Assistant leaves it in place. Remove the integration, and uninstall the app or stop its container yourself.

Troubleshooting

The Voice Support app could not be set up

On Home Assistant OS, Home Assistant creates a repair issue when it cannot install or start the app. Check the app in Settings > Apps > Install app, then restart Home Assistant to try again.

Home Assistant cannot connect to the app

  • Check that the app’s container is running and that its logs show no errors.
  • Check that Home Assistant can reach the app on port 10900, for example with curl http://HOST:10900/info.
  • If you published the port instead of using host networking, enter the IP address of the machine running the container, not the container’s name.

Removing the integration

Turn off Next-generation voice first, as described in Turning off next-generation voice. On Home Assistant OS, that already removes the integration. If you remove the integration while the feature is still on, Home Assistant OS sets it up again the next time Home Assistant starts.

This integration follows standard integration removal.

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. Next to the entry you want to remove, select the three dots menu. Then, select Delete.
    • Depending on the integration, the entries are listed under one of the following headings:
      • Devices
      • Hubs
      • Services
      • Integration entries
  3. To confirm, select Delete.
    • Home Assistant also deletes the devices and entities of the entry.
  4. If Home Assistant asks you to restart, restart Home Assistant.
  5. If Home Assistant asks whether to also delete the application credentials, select Remove or Keep.

On Home Assistant OS, if Home Assistant installed the Voice Support app, removing the integration also backs up and uninstalls the app.