Giter VIP home page Giter VIP logo

ha-openai-cloud-stt's Introduction

Google Cloud Speech-To-Text for Home Assistant

hacs_badge

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

Install

You can install this integration via HACS. Go to HACS / Integrations / Three-dots menu / Custom repositories and add:

  • Repository: https://github.com/chatziko/ha-google-cloud-stt
  • Category: Integration

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-Speach integration. Then place the JSON file with the API key you downloaded in the config folder, and add the following to your configuration.yaml:

stt:
  - platform: google_cloud_stt
    key_file: googlecloud.json
    model: command_and_search

After enabling the integration, you can configure a Voice Assistant to use it by selecting google_cloud_stt 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

I get the following error in the Home Assistant system log

The stt integration does not support any configuration parameters, got [{'platform': 'google_cloud_stt', 'key_file': 'google-cloud-service-googlecloud.json', 'model': 'command_and_search'}]. Please remove the configuration parameters from your configuration.

This is a known issue due to a bug in Home Assistant >= 2023.7. However, the reported message does not affect the functionality of this integration, it should still work as expected (if properly configured).

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:

  • Free for the first 60 minutes / month.
  • $0.024 / minute after the first 60 minutes/month.

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

ha-openai-cloud-stt's People

Contributors

chatziko avatar felipecrs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.