This release is a pre-release and may not be stable for production use.
ovos-tts-plugin-edge-tts
A text-to-speech (TTS) plugin for OpenVoiceOS that uses Microsoft's Edge TTS engine. It streams synthesized speech from Microsoft's cloud service, so it needs network access to work.
Installation
pip install ovos-tts-plugin-edge-tts
Configuration
Add the plugin to your user config file (~/.config/mycroft/mycroft.conf):
"tts": {
"module": "ovos-tts-plugin-edge-tts",
"ovos-tts-plugin-edge-tts": {
"voice": "en-US-AriaNeural",
// =100% speed; use "+50%" for 150%, or "+100%" for 200% speech rate etc for adjusting speed
"rate": "+0%"
}
}
See the list of voices available in Edge TTS.
Many of the newer multilingual voices (from March 2024) also work with this plugin. For
example: "voice": "en-US-EmmaMultilingualNeural".
Docker (ovos-tts-server)
A container image runs the plugin as an
ovos-tts-server (ElevenLabs-compatible
API). CI builds and pushes the image to GHCR on every push to dev or master.
docker run -p 9666:9666 ghcr.io/openvoiceos/ovos-tts-plugin-edge-tts:latest
curl "http://localhost:9666/synthesize/hello%20world?lang=en-US" --output hello.wav
The served voice is baked in through the EDGE_VOICE build argument (default
en-US-AriaNeural). Rebuild the image to change it, for example:
docker build --build-arg EDGE_VOICE=ar-SA-HamedNeural -t edge-tts .
See the bundled docker-compose.yml for a full example. Because Edge TTS streams audio
from Microsoft's cloud, the container needs network access.
Related projects
- OpenVoiceOS/ovos-tts-server — serves this plugin (and other OVOS TTS plugins) over an ElevenLabs-compatible HTTP API.
- rany2/edge-tts — the underlying Edge TTS client library this plugin wraps.
License
Apache-2.0. See LICENSE.txt.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_tts_plugin_edge_tts-0.3.2a2.tar.gz.
File metadata
- Download URL: ovos_tts_plugin_edge_tts-0.3.2a2.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8c39ba227dfe7695dc5b55fbef306d4c11d73db46a91976a4449807b6772c91
|
|
| MD5 |
3b5a8d85bd4e0609985aa3616252ec65
|
|
| BLAKE2b-256 |
0c06d111dda459d523308cafad8f8a2aca2d8e1508ecc0fe715582402157097b
|
File details
Details for the file ovos_tts_plugin_edge_tts-0.3.2a2-py3-none-any.whl.
File metadata
- Download URL: ovos_tts_plugin_edge_tts-0.3.2a2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65d645aee834a285f69c95aa329c818a2b1e0d9dc87f0f3e4b6825d6dfc3efcb
|
|
| MD5 |
a237d68d72b88eaaf777be3cde916df3
|
|
| BLAKE2b-256 |
ef2f2cb18bc16b33e6b151bd00c8583bd56a24de417462e25b9018e5ba4d27e2
|