Microsoft Edge TTS smart home integration, free and open source

The free neural voices of Microsoft Edge for Gladys: 300 voices, no account, no API key.
Gives Gladys the neural voices of Microsoft Edge, the ones of the
browser's "Read aloud" function: scene announcements are spoken with them on
your speakers. Free, with no account and no API key, like the edge-tts
library and the Home Assistant integration that uses it.
What you get
- A voice for Gladys (Gladys 5.3.0 or later): once selected, the Speak on a speaker scene action speaks with an Edge voice on your speakers (Sonos, Google Cast, AirPlay…).
- Over 300 voices in 75 languages, very natural: by default a voice in the language of each user (Ava or Andrew in English), female or male, or a fixed voice (Emma, Jenny, Brian, British voices, French, German, Spanish, Italian…), or any other Edge voice by its name.
- The speed, pitch and volume of the voice can be set.
- Long texts (up to the 2,000 characters Gladys sends) are cut at sentence ends and joined into a single clip.
Before you start: what this service is
- It is the Read aloud service of Microsoft Edge, used the way
edge-ttsdoes. It is neither an official nor a documented service: no guarantee, and Microsoft may change, limit or cut it at any time. The integration then fails visibly (Supervision, scene log); an update of the integration may be needed. - Every spoken text is sent to Microsoft (with the IP address of your connection), under the Microsoft privacy statement. Do not use it for texts you want to keep at home.
- An Internet connection is required.
- Not affiliated with Microsoft. Microsoft Edge is a trademark of Microsoft Corporation.
Configuration
- Install the integration from the catalog, then open its Configuration tab.
- Voice: Automatic speaks the language of the user Gladys answers, and the first administrator's for a scene announcement (French when Gladys does not know it). Or pick a voice in the list.
- Automatic voice: female or male, in automatic mode.
- Other voice: the name of any Edge voice (for example
it-IT-ElsaNeural); it replaces the choice of the list. The List the voices button gives the names of the voices of a language: type a code such asitorpt-BR. - Speed, Pitch and Volume: 0 keeps the voice as it is. The volume is set in the clip; the speaker's own volume does not change.
- Save, then press Test the voice: a test sentence is asked from Microsoft and the length of the clip received is shown.
- Open Integrations → Artificial Intelligence and select Microsoft Edge TTS in the Voice card.
Use in scenes
Add a Speak on a speaker action to a scene, choose a speaker and type the text. Gladys asks this integration for the clip, then serves it to the speaker on your local network.
The voice assistant of Gladys stays text-only with a voice integration: its page runs over HTTPS, and the clip is served on the local network over HTTP, which the browser blocks. It is a limit of Gladys, the same for every voice integration.
Limits
- A sentence takes about 1 second. A long text is sent in parts of at most 800 characters, one at a time: the 2,000 characters Gladys sends at most make 3 parts, about fifteen seconds and a clip of about 1 MB for 3 minutes, under the 30 seconds Gladys waits.
- A clip already made (same text, voice and settings) is kept in memory (the last 16), and an announcement on several speakers asks Microsoft only once.
- The voice list is read at most once a day, and only when needed (List the voices button, a language without a default voice).
- Developed and tested against the real service, without a speaker or a real Gladys instance: feedback welcome.
Troubleshooting
- Supervision tells whether Microsoft Edge answers and, if not, why (no Internet, unknown voice, the service changed…).
- "Microsoft Edge does not know this voice": check the exact spelling of the Other voice field, or empty it.
- "Microsoft refuses the connection": the service changed or limits your connection; check for an update of the integration.
- A failed announcement is written in the integration logs, and the scene action fails in the scene log.
- Start the container with
LOG_LEVEL=debugto see every request.
Configuration settings
These are the settings Microsoft Edge TTS asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| The neural voices of Microsoft Edge | section | No | No account or key: the voices of the "Read aloud" function of Edge, as with edge-tts. Unofficial and undocumented: Microsoft may change or cut it. Texts are sent to Microsoft. Then select this voice on the Artificial Intelligence page. |
| Voice | select | No | Automatic: a voice in the language of the user Gladys answers, or of the first administrator for an announcement (French when unknown). |
| Automatic voice | select | No | In automatic mode, a female or a male voice. |
| Other voice | string | No | Any other Edge voice, by its name (the "List the voices" button below gives them). Replaces the choice above. |
| Speed (%) | number | No | From -50 (slower) to +100 (faster); 0 is the usual speed of the voice. |
| Pitch (Hz) | number | No | From -50 (lower) to +50 (higher); 0 is the usual pitch of the voice. |
| Volume (%) | number | No | From -50 (quieter) to +50 (louder), relative to the clip; the speaker volume stays its own. |
How to install Microsoft Edge TTS in Gladys
- In Gladys, open Integrations: Microsoft Edge 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-edge-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-edge-tts.
Microsoft Edge 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
Microsoft Edge 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