A Home Assistant custom integration that provides Text-to-Speech (TTS) and Speech-to-Text (STT) capabilities using Hathora's hosted voice models.
- Text-to-Speech (TTS): Convert text to natural-sounding speech using Hathora's Kokoro TTS model
- Speech-to-Text (STT): Transcribe audio to text using Hathora's Parakeet STT model
- Voice Assistant Integration: Works seamlessly with Home Assistant's Assist voice assistant
- Multiple Voices: Choose from various voice options for TTS
- Configurable Speed: Adjust speech speed from 0.25x to 4x
- Home Assistant 2024.1.0 or newer
- A Hathora account with API access (get your token at models.hathora.dev)
- Open HACS in your Home Assistant instance
- Click on "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add the repository URL:
https://github.com/hathora/ha-hathora-voice - Select "Integration" as the category
- Click "Add"
- Search for "Hathora Voice" and install it
- Restart Home Assistant
- Download the latest release from the releases page
- Extract the
custom_components/hathora_voicefolder to your Home Assistant'scustom_componentsdirectory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click + Add Integration
- Search for "Hathora Voice"
- Enter your configuration:
- API Token: Your Hathora API bearer token
- TTS API Base URL: Default is
https://model-marketplace-api-dev.fly.dev - STT API Base URL: Your Hathora STT endpoint URL
- Configure TTS settings:
- TTS Model: Select the TTS model (default:
hexgrad-kokoro-82m) - Voice: Select your preferred voice (default:
af_bella) - Speed: Set speech speed multiplier (default:
1.0)
- TTS Model: Select the TTS model (default:
Once configured, you can use Hathora Voice with Home Assistant's Assist voice assistant:
- Go to Settings → Voice assistants
- Create or edit an assistant
- Select "Hathora TTS" for Speech-to-text and Text-to-speech
| Voice ID | Description |
|---|---|
af_bella |
American Female - Bella |
af_nicole |
American Female - Nicole |
af_sarah |
American Female - Sarah |
af_sky |
American Female - Sky |
am_adam |
American Male - Adam |
am_michael |
American Male - Michael |
bf_emma |
British Female - Emma |
bf_isabella |
British Female - Isabella |
bm_george |
British Male - George |
bm_lewis |
British Male - Lewis |
"Invalid API token" error
- Verify your API token is correct and hasn't expired
- Get a fresh token from models.hathora.dev
"Failed to connect to Hathora API" error
- Check your internet connection
- Verify the API endpoints are correct
- Ensure the Hathora service is available
No audio output from TTS
- Check Home Assistant logs for errors
- Verify your media player supports WAV audio
- Try a different voice option
To enable debug logging, add the following to your configuration.yaml:
logger:
default: info
logs:
custom_components.hathora_voice: debugContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Hathora for providing the voice model APIs
- The Home Assistant community for their excellent documentation and examples