Termux-TTS (Python)
Production-Grade 4-Tier On-Device Speech Synthesis Framework for Mobile & Edge (Zero-Dependency DSP Formant, C++ Vulkan GPU Neural Engine & Android Native Voice Bridge)
Installation
pip install termux-tts
1-Click Automated Engine Provisioning
termux-tts install --tier high
Quickstart
import termux_tts as tts
# 1. Studio Vulkan GPU Neural Engine
with tts.load(engine="vulkan", model_tier="high") as engine:
result = engine.synthesize("Neural speech synthesis on mobile GPU.", output="speech.wav")
print(f"Elapsed: {result.elapsed_ms:.1f}ms (RTF: {result.rtf:.4f}x)")
# 2. Zero-Dependency DSP Formant Mode
with tts.load(engine="dsp", preset="balanced") as engine:
result = engine.synthesize("Instant speech generation.", output="dsp.wav")
print(f"DSP Latency: {result.elapsed_ms:.1f}ms")
# 3. Direct Android Native Speaker Output
with tts.load(engine="native", language="en") as engine:
engine.speak("Direct hardware speaker output.")
Benchmarks (Physical Devices)
| Target Device | Hardware Architecture | Synthesis Engine | Real-Time Factor (RTF) | Status |
|---|---|---|---|---|
| Galaxy S25 | Snapdragon 8 Elite / Adreno 830 | Vulkan GPU (lessac-high-fp16) |
0.993x | Validated |
| Galaxy S25 | Snapdragon 8 Elite / Adreno 830 | Vulkan GPU (lessac-medium) |
0.264x | Validated |
| Galaxy A35 | Exynos 1380 / Mali-G68 MP5 | Vulkan GPU (lessac-medium) |
1.146x | Validated |
| ARM64 CPU | All Core Profiles | Parametric DSP Formant | 0.0130x | Validated |
Documentation
License
Apache-2.0 License. Copyright (c) 2026 Eunho Kim (@uno-km).
Release files for termux-tts 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| termux_tts-1.4.1.tar.gz | 47.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| termux_tts-1.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.9 kB
Release files / termux_tts-1.4.1.tar.gz
| Download URL | termux_tts-1.4.1.tar.gz |
|---|---|
| Size | 47.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
137eb77be5d20318dcaa503a10a0e4a919243847bc620253d12860809a54c876
|
|
BLAKE2b-256 checksum How to use checksums |
54f511e50c9bfde96334e4971ba3ed1481b1e9132edc2a7935b956104c3a6c19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Release files / termux_tts-1.4.1-py3-none-any.whl
| Download URL | termux_tts-1.4.1-py3-none-any.whl |
|---|---|
| Size | 50.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f3e6840cd8eac83674e8ed5c1e522bbcb0a82ad41a884f3d733bb6ef6a5e1d6
|
|
BLAKE2b-256 checksum How to use checksums |
acfd94810eaf9e9f6e17ef44758911c3c0f28366b2e373c8cf3b73c536d6c0ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|