Pocket TTS smart home integration, free and open source

A natural voice for Gladys with Pocket TTS by Kyutai, on your network, without graphics card.
Gives Gladys a natural voice with Pocket TTS, the text-to-speech model of Kyutai (a French research lab). It runs on a simple processor, without graphics card, on a machine of your network: the texts stay at home. The scene announcements are spoken by it on your speakers.
What you get
- A voice for Gladys (Gladys 5.3.0 or later): once selected, the Talk on a speaker scene action speaks with Pocket TTS on your speakers (Sonos, Google Cast, AirPlay…).
- French, English, German and Spanish: a Pocket TTS server loads one language, and each language of Gladys can have its own server. Each user hears their language.
- One voice per language: one of the 27 built-in voices (estelle in French, juergen in German, lola in Spanish, alba and twenty more in English), or your own voice cloned from a WAV file.
- Test the voice and Show the voices buttons in the configuration.
- Two scene triggers: Pocket TTS server unavailable and Pocket TTS server back, for example to be warned when announcements can no longer be spoken.
Before you start
- Run a Pocket TTS server on a machine of your network (Linux, macOS or
Windows, about 500 MB of memory per server), with the language you want:
- with the standalone binary of the
releases (neither
Python nor PyTorch needed):
./pocket-tts serve --host 0.0.0.0 --language french; - or with Python:
uvx pocket-tts serve --host 0.0.0.0 --language french.
- with the standalone binary of the
releases (neither
Python nor PyTorch needed):
- Languages:
french,english,german,spanish(anditalian,portuguese,dutch, which Gladys does not use). The_24lvariants (french_24l…) are bigger, better and slower previews. - One server per language: to speak French and English, start two servers on
two ports (
--port 8001). With a single server, every language is spoken by its model. - The models and voices are downloaded from Hugging Face at the first start, then kept in cache.
- Voices: licenses on kyutai/tts-voices.
- Not affiliated with Kyutai.
Configuration
- Install the integration, then open its Configuration tab.
- Server address: the address of your Pocket TTS server, for example
http://<host>:8000. A barehost:portis completed withhttp://. It speaks every language that has no server of its own. - Server for French / English / German / Spanish (optional): the address of a server started with that language. Empty: the main server speaks it.
- Voices: one per language. A built-in voice (
estelle,alba,juergen,lola,marius,cosette…), or anhf://orhttps://address of a WAV file to clone. Empty: the default voice of the server (that of its language). - Save, then press Show the voices to see the built-in voices, and Test the voice to check that a clip comes back (seconds of sound and time taken; the button does not play it).
- Open Integrations → Artificial Intelligence and choose Pocket TTS in the Voice card.
Using it in scenes
Add a Talk on a speaker action to a scene, pick a speaker and type the text. Gladys asks this integration for the clip, then serves it to the speaker on your local network.
The triggers Pocket TTS server unavailable (a server stopped answering) and Pocket TTS server back start a scene, for example to send you a message. The servers are checked every 5 minutes.
The voice assistant of Gladys stays text-only with a voice integration: its page runs over HTTPS, and the clip is served over the local network in HTTP, which the browser blocks. This is a limit of Gladys, the same for every voice integration.
Limits
- Gladys waits 30 seconds for the clip. Measured on a 4-core mini PC: 2 s for a sentence of 50 characters, 8 s for 300, 20 s for 600. Keep announcements under about 600 characters. A text that runs out of time fails without marking the server unavailable.
- Cloning a voice from a file (
hf://,https://) needs the voice cloning model: accept its terms on huggingface.co/kyutai/pocket-tts and log in on the server machine (uvx hf auth login). The built-in voices work without it. - The clips are WAV (24 kHz). Gladys refuses clips over 5 MB (about 100 seconds): a longer clip is resampled to a lower rate.
- A clip already made (same text, server and voice) is kept in memory (the 16 latest), and one announcement on several speakers asks the server once.
- No speed setting: Pocket TTS has none.
Troubleshooting
- Supervision shows whether the servers answer, and names the one that does not.
- A failed announcement is written in the logs of the integration, with the reason the server gave (voice it cannot load, no answer in time…). The text spoken is never written.
- "Cannot be reached": check the port (8000 by default) and
that the server was started with
--host 0.0.0.0(by default it only listens to its own machine). - More details in debug: set the log level of the integration to debug.
Configuration settings
These are the settings Pocket TTS asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Your Pocket TTS server | section | No | Pocket TTS runs on a simple processor, without graphics card. Start it on your network with pocket-tts serve --host 0.0.0.0 --language french (one language per server). Once saved, choose this voice in Integrations → Artificial Intelligence → Voice. |
| Server address | string | Yes | Address of the Pocket TTS server, port 8000 by default. It speaks every language that has no server of its own below. |
| Server for French (optional) | string | No | A server started with --language french. Empty: the main server speaks French. |
| Server for English (optional) | string | No | A server started with --language english. Empty: the main server speaks English. |
| Server for German (optional) | string | No | A server started with --language german. Empty: the main server speaks German. |
| Server for Spanish (optional) | string | No | A server started with --language spanish. Empty: the main server speaks Spanish. |
| Voice for French | string | No | A built-in voice (estelle, alba, juergen, lola…) or an hf:// or https:// address of a WAV file to clone. Empty: the default voice of the server. |
| Voice for English | string | No | A built-in voice (estelle, alba, juergen, lola…) or an hf:// or https:// address of a WAV file to clone. Empty: the default voice of the server. |
| Voice for German | string | No | A built-in voice (estelle, alba, juergen, lola…) or an hf:// or https:// address of a WAV file to clone. Empty: the default voice of the server. |
| Voice for Spanish | string | No | A built-in voice (estelle, alba, juergen, lola…) or an hf:// or https:// address of a WAV file to clone. Empty: the default voice of the server. |
How to install Pocket TTS in Gladys
- In Gladys, open Integrations: Pocket TTS appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/guim31/gladys-pocket-tts:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/guim31/gladys-pocket-tts.
Pocket TTS requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Pocket TTS is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation