Skip to content

A custom component within Home Assistant to be able to use STT service of Deepgram

Notifications You must be signed in to change notification settings

rockstar2020/Deepgram-HA-Custom-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Deepgram-HA-Custom-Component

I was in the search of a more accurate/affordable API-based STT service and I came across Deepgram. At the time of uploading this repository Deepgram offers $200 credit with no expiry pay-as-you-go service. https://deepgram.com/pricing That's a pretty good deal!
After a satisfying results of my tests with Deppgram's STT, I decided to write this custom component. Additionally, since I'm using multiple satellite ESPHome's microphones in my home, I added a bit of noise reduction and volume bump to the audio recieved from the mic stream in order to get a more accurate sppech to text conversion from Deepgram.

Steps to set up this integration:

  1. Navigate to your home assistant custom_components folder and create a new folder called 'deepgram_stt'. Then copy all the files located in the custom components from this repository and paste it inside the newly created folder.
  2. Register on Deepgram and generate your API Key.
  3. Add the following lines in your configuration YAML:
stt:
  - platform: deepgram_stt
    stt_api_key: 'Your-API-Key'
    vol_inc: 25 #Int Value of Volume to be increased
  1. Restart Home Assistant

Important Note:
Please keep in mind that this method of STT integration within home assistant for some reason is not fully supported hence the reason you should expect to received similar error message in your home assistant log as below:

The stt integration does not support any configuration parameters, got [{'platform': 'deepgram_stt', 'stt_api_key': 'xxxxxxxxxxxxxxxxxxx', 'vol_inc': 25}]. Please remove the configuration parameters from your configuration.



There's a chance that Home Assistant will eventually remove the option of adding stt as custom component and my component, like few other custom components out there (ie Google, OpenAI) will stop working.

Acknowledgement
I was inspired by the great work done by @shiipou for the OpenAI STT integration (https://github.com/shiipou/openai_stt).

About

A custom component within Home Assistant to be able to use STT service of Deepgram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages