Home Assistant Setup
Use a HACS OpenAI TTS custom endpoint to create Fish Audio announcements and voice-assistant responses in Home Assistant.
Connect Fish Audio TTS to Home Assistant
This guide uses the HACS OpenAI TTS integration that supports custom OpenAI-compatible endpoints. It sends Fish Audio speech to Home Assistant media players for announcements, automations, and Assist.
Choose the correct integration
The built-in OpenAI Conversation integration does not provide a third-party TTS Base URL. This
guide uses the sfortis/openai_tts HACS integration instead.
Install the integration
- Open HACS and search Integrations for OpenAI TTS.
- Download it and restart Home Assistant.
- Open
Settings → Devices & Services → Add Integration → OpenAI TTS. - Enter your Fish Audio API key and custom endpoint
https://fishaudio.org/v1.
Add a TTS agent with:
| Setting | Value |
|---|---|
| Model | fishaudio-s21pro-flash |
| Voice | 00a1b221-6137-4b73-ad62-b0cbce134167 |
| Audio format | mp3 |
| Speed | 1 |
Custom endpoint mode accepts a manually entered Fish Audio Voice ID. Replace the test voice after the first successful announcement.
Test an announcement
Call the integration's openai_tts.say action from Developer Tools:
action: openai_tts.say
target:
entity_id: media_player.living_room_speaker
data:
tts_entity: tts.openai_tts_fish_audio
message: 'Hello, this is a Fish Audio smart-home announcement.'
volume: 0.6Replace both entity IDs with your actual TTS agent and media player. After it works, reuse the action in doorbell, alert, weather, or calendar automations.
Troubleshooting
- No custom endpoint field: make sure you installed the HACS OpenAI TTS integration, not built-in OpenAI Conversation.
- The speaker is silent: confirm that the
media_playercan play regular media and inspect Home Assistant logs. - Fish Audio voices are not listed: manually enter the Voice ID in custom endpoint mode.
- 401/402: verify the API key and API credit balance.