Complete API Reference
100% Full Class, Struct, and Method Documentation
Factory Gateway
| Symbol | Signature | Description |
termux_tts.load |
(engine: str = 'auto', model_tier: str = 'high', preset: str = 'balanced', language: str = 'en') |
Initializes and returns the unified TTS engine instance. Supports context manager pattern. |
termux_tts.run_installation |
(tier: str = 'high', force: bool = False) -> bool |
1-click provisioning tool downloading native ARM64 C++ binaries and model weights. |
termux_tts.doctor |
() -> DiagnosticReport |
Executes comprehensive 12-stage Vulkan and system diagnostics. |
Engine Methods
| Method | Parameters | Return Type | Description |
synthesize |
(text: str, output: str = None, speed: float = 1.0, preset: str = None) |
SynthesisResult |
Synthesizes text into 16-bit linear PCM WAV audio. |
speak |
(text: str, stream: str = 'MUSIC') |
NativeResult |
Transmits speech to the device speaker via Android native TTS bridge. |