Integración domótica Fish Audio, gratuita y de código abierto

Fish Audio voices (library or cloned) for Gladys announcements, with your 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 Fish Audio (its voice library, or a voice you cloned there) for its announcements (the "Play a notification" scene action) and the voice assistant reply, with the API key of your own Fish Audio account. Unofficial: not affiliated with Fish Audio.
This integration has never been tested with a real Fish Audio account yet: it was built from the Fish Audio API documentation (docs.fish.audio, "Text to Speech", 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 Fish Audio for an MP3 clip (128 kbit/s) with the model you chose, and hands it to Gladys, which plays it on your speakers.
Then, in Gladys, open Integrations → Artificial Intelligence, card Voice, and select Fish Audio.
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
The Fish Audio API is billed per UTF-8 byte of text, from the API credit of your account (prices on
docs.fish.audio, December 2026):
about 15 USD per million bytes for the three models offered here (s3-pro, s2.1-pro, s2-pro). An unaccented
letter is 1 byte, an accented one 2, a Chinese character 3. The subscription plans of the Fish Audio app do not
include API use: add API credit.
To keep the bill under control:
- Maximum length of a text (default 1,000 bytes, about a minute of speech): a longer text is cut before it is sent, at a space when there is one in the second half.
- Daily limit (default 20,000 bytes, about 0.30 USD a day at most): counted in memory before each request
leaves, and written to
/data(the write waited for 1 s at most); once reached, nothing more is sent until the next day (UTC) or a higher limit. A request that may have been billed (no answer, connection cut, unusable clip) stays counted; a request Fish Audio answered with an error status is not. An announcement is not held up by/datamore than 3 s (2 s at most for the first read, 1 s for a write). 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 the integration only has a reserve budget for the day: the smaller of your daily limit and 2,000 bytes (about 0.03 USD), every request counted in memory. Past it, nothing is sent and the status says so; it lifts as soon as/datais read again or written again. A/datathat is really empty (first start) keeps the normal limit. 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 pay-as-you-go plan allows 5) 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).
- Fish Audio stops by itself when the credit runs out (HTTP 402); keep the credit you add small, and the automatic top-up of Fish Audio off if you want a hard stop.
Create the API key
- Create an account on fish.audio, open API Keys (fish.audio/app/api-keys) and create a key.
- Add API credit (the API billing, separate from the subscription plans).
- Choose voices in the library (or clone your own): the identifier of a voice is the 32 characters in the
address of its page,
https://fish.audio/m/<identifier>. Paste the identifier or the whole address.
Configuration
| Field | What it does |
|---|---|
| API key | Kept by Gladys in its database, never shown again, sent only to Fish Audio (as a Bearer token). |
| Model | s3-pro (default), s2.1-pro or s2-pro, all about 15 USD per million bytes. |
| French / English / German voice | Optional. The identifier (or page address) of a Fish Audio voice. Empty: the voice of the default language, else Fish Audio's own. |
| Language when unknown | The voice used when Gladys sends no language or another one. |
| Speaking speed | 0.8× to 1.25× (prosody.speed). |
| Daily limit (bytes of text) | 500 to 10,000,000; default 20,000. |
| Maximum length of a text (bytes) | 100 to 4,000; default 1,000. |
The Test the voice button asks Fish Audio for a short sentence (about 50 billed bytes) with the saved settings and says how long it took. Nothing is played. It counts against the daily limit and waits for a pause like an announcement.
When something goes wrong
The status of the Configuration screen says why:
- Fish Audio refused this API key (HTTP 401: wrong, deleted or regenerated 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. - No API credit left (HTTP 402): add credit on fish.audio. 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 / Fish Audio 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. - Fish Audio refused the request (HTTP 400, 404, 422 or another 4xx): usually a voice identifier that does not exist; only the status code is shown (the body of the answer could quote your text); nothing is 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.
- Not an MP3 clip: the answer was refused (and stays counted: it may have been billed).
Privacy
The text to speak is sent to Fish Audio. The integration never writes it to the logs or to /data (only its
length in bytes); the clips stay in memory only. A redirect from the Fish Audio address is never followed, so the
key goes nowhere else.
Parámetros de configuración
Estos son los parámetros que Fish Audio te pide en su pantalla de configuración en Gladys.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| Your Fish Audio account | section | No | Fish Audio bills its API per byte of text (UTF-8), from the API credit of your account: about 15 USD per million bytes for the models offered here (1,000 bytes is roughly 160 English words; an accented letter counts 2 bytes). Create an API key on fish.audio (API Keys page) and add API credit; the subscription plans do not include API use. |
| API key | secret | Sí | Kept by Gladys in its database, never shown again, sent only to Fish Audio. |
| Model | select | No | All three cost the same (about 15 USD per million bytes). Older s1 (retiring) and the dearer drama-3 are not offered. |
| French voice | string | No | Optional. The identifier of a Fish Audio voice (32 characters, shown in the address of its page on fish.audio, e.g. fish.audio/m/<identifier>), or that address. Empty: the voice of the default language, else the Fish Audio default voice. |
| English voice | string | No | Optional. The identifier of a Fish Audio voice (32 characters, shown in the address of its page on fish.audio, e.g. fish.audio/m/<identifier>), or that address. Empty: the voice of the default language, else the Fish Audio default voice. |
| German voice | string | No | Optional. The identifier of a Fish Audio voice (32 characters, shown in the address of its page on fish.audio, e.g. fish.audio/m/<identifier>), or that address. Empty: the voice of the default language, else the Fish Audio default voice. |
| Language when unknown | select | No | The voice used when Gladys sends no language, or another one. |
| Speaking speed | select | No | |
| Daily limit (bytes of text) | number | No | Nothing more is sent to Fish Audio once this many bytes of text were sent in the day (UTC). The default, 20,000 bytes, costs about 0.30 USD a day at most. A clip served from memory (the same sentence again) is not counted. |
| Maximum length of a text (bytes) | number | No | A longer text is cut (at a space when possible) before it is sent: 1,000 bytes is about a minute of speech. |
Cómo instalar Fish Audio en Gladys
- En Gladys, abre Integraciones: Fish Audio 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-fish-audio: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-fish-audio.
Fish Audio 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
Fish Audio 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