đź—Ł Custom Integration: OpenAI TTS with customized endpoint help + chime possibility + audio normalization

đź—Ł Custom Integration: OpenAI TTS with customized endpoint help + chime possibility + audio normalization

The OpenAI TTS element for Home Assistant makes it attainable to make use of the OpenAI API to generate spoken audio from textual content. This can be utilized in automations, assistants, scripts, or another element that helps TTS inside Home Assistant.


Features

  • Text-to-Speech conversion utilizing OpenAI’s API

  • Support for a number of languages and voices – No particular configuration wanted; the AI mannequin auto-recognizes the language.

  • Customizable speech mannequin – Check supported voices and fashions.

  • Integration with Home Assistant – Works seamlessly with assistants, automations, and scripts.

  • Custom endpoint possibility – Allows you to make use of your personal OpenAI appropriate API endpoint.

  • :star:(New!) Chime possibility – Useful for bulletins on audio system. (See Devices → OpenAI TTS → CONFIGURE button)

  • :star:(New!) User-configurable chime sounds – Drop your personal chime sound into config/custom_components/openai_tts/chime folder (MP3).

  • :star:(New!) Audio normalization possibility – Uses extra CPU however improves audio readability on cell phones and small audio system. (See Devices → OpenAI TTS → CONFIGURE button)

Caution! You want an OpenAI API key and a few steadiness obtainable in your OpenAI account!

go to: (https://platform.openai.com/docs/pricing)

YouTube voice demo ( not a tutorial! )

Home Assistant – OpenAI TTS customized element


HACS set up ( most well-liked! )

  • Go to the sidebar HACS menu

  • Click on the 3-dot overflow menu within the higher proper and choose the “Custom Repositories” merchandise.

  • Copy/paste https://github.com/sfortis/openai_tts into the “Repository” textbox and choose “Integration” for the class entry.

  • Click on “Add” so as to add the customized repository.

  • You can then click on on the “OpenAI TTS Speech Services” repository entry and obtain it. Restart Home Assistant to use the element.

  • Add the combination by way of UI, present API key and choose required mannequin and voice. Multiple situations could also be configured.

Manual set up

  • Ensure you have got a custom_components folder inside your Home Assistant configuration listing.

  • Inside the custom_components folder, create a brand new folder named openai_tts.

  • Place the repo recordsdata inside openai_tts folder.

  • Restart Home Assistant

  • Add the combination by way of UI, present API key and choose required mannequin and voice. Multiple situations could also be configured.


Repo → GitHub – sfortis/openai_tts: Custom TTS element for Home Assistant. Utilizes the OpenAI speech engine or any appropriate endpoint to ship high-quality speech. Optionally gives chime and audio normalization options.

1 publish – 1 participant

Read full matter

HI-FI News

by way of Home Assistant Community – Latest matters https://ift.tt/VCnpS0m

March 19, 2025 at 01:37PM