Skip to main content

etm-tts

Text to speech that runs on your own device: nine voices, 23 languages, faster than real time on a CPU. It runs on ONNX Runtime anywhere and on MLX on Apple silicon.

pip install etm-tts          # on Apple silicon: pip install "etm-tts[mlx]"
from etm_tts import TTS

tts = TTS()  # fetches the model once, about 150 MB
tts.speak("Hello! It's nice to finally meet you.").save("hello.wav")
tts.speak("Guten Morgen, wie geht es dir?", voice="Henry", lang="de").save("morgen.wav")

For long texts, stream yields audio piece by piece, the first one after about a second, so playback can start right away:

for chunk in tts.stream(chapter, voice="Vivienne"):
    player.write(chunk)  # float32 samples at tts.sample_rate

From the command line:

etm-tts speak "Hello there." -o hello.wav --voice Gabriel
etm-tts voices
etm-tts detect hello.wav

Voices

Female: Juliette (default), Vivienne, Sienna, Molly, Willow. Male: Henry, Elias, Silas, Gabriel.

Every voice speaks every language.

Languages

English en, German de, French fr, Spanish es, Italian it, Portuguese pt, Dutch nl, Danish da, Polish pl, Czech cs, Slovak sk, Slovenian sl, Croatian hr, Hungarian hu, Romanian ro, Bulgarian bg, Russian ru, Greek el, Latvian lv, Lithuanian lt, Estonian et, Hindi hi, Japanese ja.

English and German read numbers, dates and abbreviations as they're spoken. In the other languages, write numbers as words for now.

Model variants

variant size
q8 150 MB default; recommended for long-form reading
q4 81 MB smaller and faster
q3 65 MB smallest
raw 437 MB full precision

Pick a variant with TTS("q4"), or use a copy on disk with TTS(path="onnx/quants/q8"). The model takes 12 steps by default; speak(text, steps=16) is steadier still, fewer steps are faster. q4 and q3 with few steps can make pitch errors over long passages, so use them when size or speed requires it.

On an NVIDIA GPU, install onnxruntime-gpu in place of onnxruntime and use TTS(device="cuda"). An RTX 4090 reads about 250 times faster than real time, 340 times on long texts.

Metadata

Release files for etm-tts 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etm-tts 0.1.0
File Size Uploaded Provenance Actions
etm_tts-0.1.0.tar.gz 34.0 kB Without provenance Details for etm_tts-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for etm-tts 0.1.0
File Interpreter ABI Platform Actions
etm_tts-0.1.0-py3-none-any.whl Python 3 none any Details for etm_tts-0.1.0-py3-none-any.whl

Total release size: 72.8 kB

Release files / etm_tts-0.1.0.tar.gz

Download URL etm_tts-0.1.0.tar.gz
Size 34.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0133a20454eaf4c4b2ed876fa614b27c36b055399bee08c1a45aa96446099691
BLAKE2b-256 checksum
How to use checksums
6d195bbc0c4127a45d87f8ddb1fcebccaab0b1652b9af5a1ad0a644b992d8bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / etm_tts-0.1.0-py3-none-any.whl

Download URL etm_tts-0.1.0-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
457144e1c4b7ffa10057b85ee64a23d2bf943a0848f80844a077b39f1d37a6d5
BLAKE2b-256 checksum
How to use checksums
24d82b06575f97f8e6370705c55ded4a91a8dc41e2eb8670c98064fd9736816c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for etm-tts 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page