Govornik integration for Home Assistant
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| custom_components/govornik_tts | ||
| .gitattributes | ||
| LICENSE | ||
| README.md | ||
Govornik TTS – Home Assistant Integration 🇸🇮
This is a custom Text-to-Speech (TTS) provider for Home Assistant, using the Govornik API to synthesize Slovenian speech.
Supports user-selectable voices and native Home Assistant UI configuration.
✅ Features
- 🗣️ Text-to-speech in Slovenian (
sl) - 🎙️ Voice selection (pulled live from Govornik
/voicesendpoint) - ⚙️ Fully configurable via Home Assistant UI
- 📦 Clean integration with HA’s TTS engine
- 💬 MP3/WAV output via
media_player,automation, etc.
📦 Installation
Option 1: HACS
Coming soon.
Option 2: Manual
- Clone this repository or download the ZIP
- Copy the
govornik_ttsfolder into your Home Assistant config directory: - Restart Home Assistant
⚙️ Configuration
After installing, add the integration via:
Settings → Devices & Services → Add Integration → Search "Govornik TTS"
You will be prompted to:
- 🎤 Select the desired voice
No YAML setup is required.
🔊 Usage Example
In your scripts.yaml or automation:
service: tts.govornik_tts_say
data:
entity_id: media_player.living_room_speaker
message: "Pozdravljeni! To je test sinteze govora."
🌐 Supported Languages
| Code | Language | Description |
|---|---|---|
sl |
Slovenian | Slovenski jezik 🇸🇮 |
🛠️ Development Notes
- This integration communicates with the Govornik API at:
https://s1.govornik.eu - Voices are fetched from the
/voicesendpoint and cached locally - Audio is generated via POST to
/with parameters:voice,text,format,source
📄 License
This project is licensed under the MIT License.
🤝 Acknowledgments
- Govornik TTS API
- Home Assistant
- Inspired by community TTS providers such as
google_translateandpicotts
💡 TODO
- HACS support
- Voice preview/test button in UI
- Caching of audio files for repeated phrases
✨ Screenshots
Coming soon...
Made with ❤️ in 🇸🇮 for Home Assistant