Integración domótica Inworld TTS, gratuita y de código abierto

Low-cost Inworld TTS voices for Gladys announcements, with your API key.
La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.
Gives Gladys the voices of Inworld TTS (its built-in voices, or a voice you cloned or designed in your Inworld workspace) for its announcements (the "Play a notification" scene action) and the voice assistant reply, with the API key of your own Inworld account. Inworld TTS-2 Flash is one of the cheapest good-quality voices. Unofficial: not affiliated with Inworld AI.
This integration has never been tested with a real Inworld account yet: it was built from the Inworld documentation (docs.inworld.ai, "Synthesize speech", "Billing", "Rate limits", December 2026) and tested against a local imitation of that API.
What it does
Gladys sends a text (2,000 characters at most) and the language of the user. The integration picks the voice you
chose for that language (French, English or German; the "Language when unknown" voice otherwise), asks Inworld for
an MP3 clip (128 kbit/s) with the model you chose, telling it the language (fr-FR, en-US, de-DE), and hands
the clip to Gladys, which plays it on your speakers.
Then, in Gladys, open Integrations → Artificial Intelligence, card Voice, and select Inworld TTS.
Limits of Gladys itself (not of this integration): the clip is served to speakers on your local network, and the voice assistant reply stays in text in an HTTPS page (see the Gladys documentation).
What it costs
Inworld bills text to speech per character of text sent, spaces, punctuation and tags included; an emoji or another character outside the Basic Multilingual Plane counts 2 (prices on inworld.ai/pricing, December 2026, On-Demand plan): 15 USD per million characters for TTS-2 Flash, 25 USD for TTS-2; the paid plans are cheaper per character. About 1,000 characters make a minute of speech.
To keep the bill under control:
- Maximum length of a text (default 1,000 characters, about a minute of speech; Inworld takes 2,000 at most): a longer text is cut before it is sent, at a space when there is one in the second half. A text is never longer than the 24-hour limit itself.
- Limit per 24 hours (default 20,000 characters, at most about 0.30 USD a day on TTS-2 Flash, 0.50 USD on
TTS-2), over a sliding window: each request counts for the 24 hours after it left. It is counted in memory
before the request leaves and written to
/data(the write waited for 1 s at most); once reached, nothing more is sent until older requests leave the window or the limit is raised.- A request that may have been billed stays counted: no answer, a connection cut, an unusable clip, and also every error status (400, 402, 403, 429, 5xx…), since Inworld does not document any of them as unbilled. Only a request that certainly never left (the connection itself could not be opened) is given back.
- When Inworld answers that it processed more characters than the text sent (
usage.processedCharactersCount), the difference is counted too: the count is never below the text sent nor below what Inworld reports. A figure out of proportion (more than 2,000, Inworld's bound for one request, or more than 4 times the text) is ignored and noted in the log (without the text): the text sent stays counted. - At a restart, an entry of
/datathat cannot be read (a count negative, too large, missing) counts as the highest limit (10,000,000) for 24 hours: the count never starts again from 0.
- Reserve budget: as long as
/datacould not be read (unreadable, read-only, mounted wrongly) or cannot be written, the count could be lost at a restart, so at most 2 requests whose count was not saved may leave in 24 hours (kept in memory). Past them, nothing is sent and the status says so; it lifts as soon as/datacan be written again. A/datathat is really empty (first start) keeps the normal limit. An announcement is not held up by/datamore than 3 s (2 s at most for the first read, 1 s for a write). A cut of power or a crash at the wrong moment can lose the count of one request. - The same text in the same voice, language, model and speed is played again from memory (7 days, 50 clips, lost at a restart), not billed twice; asked several times at once (a scene announcing on several speakers), it makes one request whose answer all share.
- At most 2 requests at once (the On-Demand plan allows 5 per account) and 8 waiting; more at the same moment are refused ("Too many announcements").
- No retry: a request that may have left is not sent again by the integration (a retry could be billed twice).
Create the API key
- Create an account on the Inworld Portal, open API Keys in your workspace and create a key.
- Copy its Basic (Base64) credentials (one long string of letters, digits,
+,/and=), and paste them in the API key field. A pastedBasicin front is taken off. - Choose voices in the Inworld voice library or the TTS Playground: the voice ID is a name (
Ashley,Dennis…) for a built-in voice, orworkspace__voicefor a voice of your workspace.
Configuration
| Field | What it does |
|---|---|
| API key (Base64) | Kept by Gladys in its database, never shown again, sent only to Inworld (as Authorization: Basic). |
| Model | inworld-tts-2-flash (default, 15 USD per million characters) or inworld-tts-2 (25 USD). |
| French / English / German voice | Optional. An Inworld voice ID. Empty: the voice of the default language, else Ashley. |
| Language when unknown | The voice used when Gladys sends no language or another one. |
| Speaking speed | 0.8× to 1.25× (speakingRate). |
| Limit per 24 hours (characters) | 500 to 10,000,000; default 20,000. |
| Maximum length of a text (characters) | 100 to 2,000; default 1,000. |
Inworld speaks the language asked with any voice (cross-lingual synthesis); a voice whose own language it is sounds most natural.
The Test the voice button asks Inworld for a short sentence (about 45 billed characters) with the saved settings and says how long it took. Nothing is played. It counts against the limit and the reserve budget, and waits for a pause like an announcement.
When something goes wrong
The status of the Configuration screen says why:
- Inworld refused this API key (HTTP 401: wrong, deleted or expired key): nothing more is sent with it, even
after a restart (once
/datais read), until you enter another key or the Test button succeeds (it sends anyway)./datakeeps only two 8-bit prints of a salted hash of the refused key, never the key: a new key is tried at once; after a restart, another key has 1 chance in 65,536 to look refused, and the Test button then clears it. - The account cannot pay (HTTP 402): add credit or check the plan in the Inworld Portal. No request for 60 s, then 2, 4… minutes up to 1 hour while it goes on; the Test button waits too. This is not a refusal of the key.
- Denied (HTTP 403): not a refusal of the key; the next announcement tries again.
- Slow down / Inworld failed (HTTP 429 or 5xx): no request for 60 s, then 2, 4… minutes up to 1 hour if it goes
on (longer when the answer has a
Retry-After, 6 hours at most); the Test button waits too. The pause is kept in/dataacross a restart; a success ends it. - Inworld refused the request (HTTP 400, 404 or another 4xx): usually a voice ID that does not exist; only the status code is shown (the body of the answer could quote your text); the request stays counted.
- Could not be reached, or the connection was cut: a cut after the request left stays counted.
- Did not answer in time: Gladys waits 30 s; the integration gives up at 25 s (stays counted).
- Not an MP3 clip: the answer was refused (and stays counted: it may have been billed).
Privacy
The text to speak is sent to Inworld. The integration never writes it to the logs or to /data (only its length
in characters); the clips stay in memory only. A redirect from the Inworld address is never followed, so the key
goes nowhere else.
Parámetros de configuración
Estos son los parámetros que Inworld TTS te pide en su pantalla de configuración en Gladys.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| Your Inworld account | section | No | Inworld bills text to speech per character of text sent, spaces and punctuation included (an emoji counts 2): 15 USD per million characters for TTS-2 Flash, 25 USD for TTS-2 (On-Demand plan, lower on paid plans). 1,000 characters is about a minute of speech. In the Inworld Portal, create an API key and copy its “Basic (Base64)” credentials. |
| API key (Base64) | secret | Sí | Kept by Gladys in its database, never shown again, sent only to Inworld. |
| Model | select | No | TTS-2 Flash: the cheapest and fastest (15 USD per million characters). TTS-2: the best quality (25 USD per million). The older deprecated models are not offered. |
| French voice | string | No | Optional. The voice ID shown in the Inworld voice library or Portal: a built-in voice (e.g. Ashley, Dennis) or one of your workspace (workspace__voice). Empty: the voice of the default language, else Ashley. Inworld speaks the language with any voice; a voice native to it sounds best. |
| English voice | string | No | Optional. The voice ID shown in the Inworld voice library or Portal: a built-in voice (e.g. Ashley, Dennis) or one of your workspace (workspace__voice). Empty: the voice of the default language, else Ashley. Inworld speaks the language with any voice; a voice native to it sounds best. |
| German voice | string | No | Optional. The voice ID shown in the Inworld voice library or Portal: a built-in voice (e.g. Ashley, Dennis) or one of your workspace (workspace__voice). Empty: the voice of the default language, else Ashley. Inworld speaks the language with any voice; a voice native to it sounds best. |
| Language when unknown | select | No | The voice used when Gladys sends no language, or another one. |
| Speaking speed | select | No | |
| Limit per 24 hours (characters) | number | No | Nothing more is sent to Inworld once this many characters were sent in the last 24 hours (sliding). The default, 20,000 characters, costs at most about 0.30 USD a day on TTS-2 Flash, 0.50 USD on TTS-2. A request that may have been billed stays counted; a clip served from memory (the same sentence again) is not counted. |
| Maximum length of a text (characters) | number | No | A longer text is cut (at a space when possible) before it is sent: 1,000 characters is about a minute of speech. Inworld takes 2,000 at most. |
Cómo instalar Inworld TTS en Gladys
- En Gladys, abre Integraciones: Inworld TTS aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
- Haz clic en Instalar. Gladys descarga la imagen Docker (
ghcr.io/lm1lc3n7/gladys-inworld-tts:0.1.1), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración). - Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
- También puedes instalarla directamente desde la URL de su repositorio: https://github.com/LM1LC3N7/gladys-inworld-tts.
Inworld TTS requiere Gladys >=5.3.0. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.
¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.
Sobre las integraciones externas
Inworld TTS es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene LM1LC3N7, no el equipo principal de Gladys.
- Explorar todas las integraciones, nativas y de la comunidad
- Crear y publicar tu propia integración externa
- Código fuente en GitHub — fuente de esta documentación