This custom component integrates OpenAI's Speech-To-Text (stt) service with Home Assistant, for people that run on Raspberry Pi and can't decently run Whisper locally.
This was made possible using the work of sfortis's openai_tts.
The OpenAI STT component for Home Assistant makes it possible to use the OpenAI API to generate text from spoken audio. This can be used in assistants. You need an openAI API key.
- Speech-To-Text conversion using OpenAI's API
- Support for multiple languages
- Integration with Home Assistant's assistant
-
Ensure you have a
custom_components
folder within your Home Assistant configuration directory. -
Inside the
custom_components
folder, create a new folder namedopenai_stt
. -
Place the repo files inside
openai_stt
folder. -
Restart Home Assistant
-
Configure the component in your
configuration.yaml
file:
stt:
- platform: openai_stt
api_key: "your_api_key_here"
# Optional parameters:
language: "en-US"
model: "whisper-1"