Skip to main content
Pre-release

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

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

ovos_tts_plugin_edge_tts-0.3.2a2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_tts_plugin_edge_tts-0.3.2a2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos_tts_plugin_edge_tts-0.3.2a2.tar.gz.

File metadata

File hashes

Hashes for ovos_tts_plugin_edge_tts-0.3.2a2.tar.gz
Algorithm Hash digest
SHA256 f8c39ba227dfe7695dc5b55fbef306d4c11d73db46a91976a4449807b6772c91
MD5 3b5a8d85bd4e0609985aa3616252ec65
BLAKE2b-256 0c06d111dda459d523308cafad8f8a2aca2d8e1508ecc0fe715582402157097b

See more details on using hashes here.

File details

Details for the file ovos_tts_plugin_edge_tts-0.3.2a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_tts_plugin_edge_tts-0.3.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 65d645aee834a285f69c95aa329c818a2b1e0d9dc87f0f3e4b6825d6dfc3efcb
MD5 a237d68d72b88eaaf777be3cde916df3
BLAKE2b-256 ef2f2cb18bc16b33e6b151bd00c8583bd56a24de417462e25b9018e5ba4d27e2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.2a2 This release

2 files

0.2.2

2 files

0.2.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page