Govornik integration for Home Assistant
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
nikigre b26768b682
Some checks failed
Tests / Pytest (push) Has been cancelled
Validate / Hassfest (push) Has been cancelled
Remove HACS support
2026-11-21 16:49:19 +01:00
.github/workflows Remove HACS support 2026-11-21 16:49:19 +01:00
custom_components Add ai_voice.speech category to manifest 2026-11-21 16:46:02 +01:00
tests Modernize integration to current Home Assistant practices 2026-11-21 16:40:03 +01:00
.gitattributes Initial commit 2025-07-07 12:29:39 +02:00
.gitignore Modernize integration to current Home Assistant practices 2026-11-21 16:40:03 +01:00
LICENSE Initial commit 2025-07-07 12:29:39 +02:00
pyproject.toml Modernize integration to current Home Assistant practices 2026-11-21 16:40:03 +01:00
README.md Remove HACS support 2026-11-21 16:49:19 +01:00
requirements_test.txt Modernize integration to current Home Assistant practices 2026-11-21 16:40:03 +01:00

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 /voices endpoint)
  • ⚙️ Fully configurable via Home Assistant UI
  • 📦 Clean integration with HA’s TTS engine
  • 💬 MP3/WAV output via media_player, automation, etc.

📦 Installation

  1. Clone this repository or download the ZIP
  2. Copy the custom_components/govornik_tts folder into the custom_components folder of your Home Assistant config directory
  3. 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:

action: tts.speak
target:
  entity_id: tts.govornik
data:
  media_player_entity_id: media_player.living_room_speaker
  message: "Pozdravljeni! To je test sinteze govora."
  # Optional overrides:
  # options:
  #   voice: <voice id>
  #   format: wav

Requires Home Assistant 2025.3 or newer.

🌐 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 /voices endpoint 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


💡 TODO

  • Voice preview/test button in UI
  • Caching of audio files for repeated phrases

✨ Screenshots

Coming soon...


Made with ❤️ in 🇸🇮 for Home Assistant