Getting started - Local
The simplest and most effective way to use Assist is to leverage the voice providers (for speech-to-text and text-to-speech) included in Home Assistant Cloud
If you are interested in setting up a fully local voice assistant, follow this setup:
Prerequisites
For Assist to be able to talk to your Home Assistant setup your setup needs to be able to listen, understand and then talk back.
In Home Assistant, the Assist pipelines are made up of various components that together form a voice assistant. For each component, you can choose from different options.
- For listening and talking back, it needs your phone with the Home Assistant app, or a voice activated device.
- For understanding, it needs to have a text-to-speech and speech-to-text software integrated.
- For running all together, it needs to have the Home Assistant Operating System running.
Some options for speech-to-text and text-to-speech
There is a speech-to-text and text-to-speech option that runs entirely local. No data is sent to external servers for processing.
The speech-to-text option is Whisper
Please be sure to check how either option will work in your language, since quality can change quite a bit.
Installing a local Assist pipeline
For the quickest way to get your local Assist pipeline started, follow these steps:
-
Install the add-ons to convert text into speech and vice versa.
- Install the Whisper and the Piper add-ons.
- If you want to use a wake word, also install the openWakeWord add-on.
- Start the add-ons.
- Once the add-ons are started, head over to the integrations under Settings > Devices & Services.
- You should now see Piper and Whisper being discovered by the Wyoming integration.
- For each integration, select Add.
-
Once the setup is complete, you should see both Piper and Whisper (and, optionally, also openWakeword) in one integration.
- Whisper converts speech into text.
- Piper converts text into speech.
- Wyoming is the protocol they are both using to communicate.
-
-
Setup your assistant.
-
Go to Settings > Voice assistants and select Add assistant.
-
Troubleshooting: If you do not see any assistants here, you are not using the default configuration. In this case, you need to add the following to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file:
# Example configuration.yaml entry assist_pipeline:
-
-
Enter a name. You can pick any name that is meaningful to you.
-
Select the language that you want to speak.
-
Under Conversation agent, select Home Assistant.
-
Under Speech-to-text, select faster-whisper. Select the language.
-
Under Text-to-speech, select piper. Select the language.
- Depending on your language, you may be able to select different language variants.
-
If you like, pick one of the predefined wake words.
- You can even define your own wake word. This is not difficult to do, but you will need to set aside a bit of time for this.
- Once you defined your own wake word, it will show in this pick list.
-
-
That’s it. You ensured your voice commands can be processed locally on your device.
-
If you haven’t done so yet, expose your devices to Assist.
- Otherwise you won’t be able to control them by voice.
Fine-tuning Whisper and Piper for your setup
You would like to tweak the configuration for better performance or accuracy? View some of the options in the video below. Explained by Mike Hansen, creator of Rhasspy, Piper, and Wyoming.
The options are also documented in the add-on itself. Go to the Whisper or the Piper add-on and open the Documentation page.
Also be sure to check the specific tutorial for using Piper in Automations
Next steps
Once the pipeline is configured, you are ready to jump into the basic conversation setup in Best Practices