chatziko / ha-google-cloud-stt

Use Google Cloud Speech-to-Text in Home Assistant.
64 stars 13 forks source link

Google Cloud Speech-To-Text for Home Assistant

hacs_badge

This integration allows to use Google Cloud Speech-to-Text in Home Assistant.

Install

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

You can install this integration via HACS. Click on the badge above or go to HACS / Integrations / Three-dots menu / Custom repositories and add:

Then install the "Google Cloud Speech-To-Text" integration.

Configure

To use it you need to configure a Google Cloud project, following the same instructions as the Google Cloud Text-to-Speech integration. Then place the JSON file with the API key you downloaded in the config folder.

Next add the integration to your Home Assistant instance.

Open your Home Assistant instance and start setting up a new integration.

After enabling the integration, you can configure a Voice Assistant to use it by selecting Google Cloud in the "Speech-to-text" option.

The supported languages are listed here. Note that V1 of Google Cloud Speech-to-Text is used (it is available in more languages and has a free tier). The list of available models is avaiable here. The default model is command_and_search, since it is available in most languages and should perform well in home automation tasks.

FAQ

How much does it cost to use Google Cloud Speech-To-Text?

At the time of writing the pricing of Google Cloud Speech-to-Text V1 is:

Check Google's pricing table for up-to-date information.