sipeter/CloneTTS
A lightweight, offline Android Text-to-Speech (TTS) engine enabling seamless system-wide voice cloning and high-fidelity text reading. / 运行在安卓本地的轻量级文字转语音 (TTS) 引擎,支持离线发音人提取、零门槛音色克隆与双擎系统级全局听书。
What it solves
CloneTTS solves the problem of wanting a specific, familiar voice to read long texts aloud on your phone — without needing an internet connection. Normally, text-to-speech apps either use generic built-in voices or rely on cloud services. CloneTTS lets you record just 1–3 seconds of any person's speech, clone that voice locally on the device, and use it to read books or long documents offline. It also addresses the practical annoyance of a phone's operating system killing background apps while you're listening, which is why it requires you to adjust battery settings.
How it works
CloneTTS is an Android app that runs all speech synthesis and voiceprint extraction entirely on-device. To create a custom voice, you record a short, clear sentence (1–3 seconds, no background noise) and type the exact text spoken. The app then uses that reference audio to synthesize speech in the same voice. The underlying technology relies on open-source components: sherpa-onnx for on-device C++ inference, ZipVoice for zero-shot voice cloning, ONNX Runtime as the machine-learning backend, and Qualcomm's AI Engine SDK for NPU acceleration on supported Snapdragon chips.
Once a voice is created, the app can be used in two main ways. First, it registers as a system-level TTS engine, so any reader app (like Legado or Moon+ Reader) can use it via the phone's built-in "Read Aloud" feature. Second, it can run a local HTTP API server, letting power users configure reader apps to send text to the app via GET or POST requests, with options to lock to a specific voice or even assign different voices to different characters in a book. For higher-quality or multilingual synthesis, the app can optionally connect over a local network to a companion PC server or any OpenAI-compatible TTS backend, automatically falling back to offline voices when Wi-Fi is unavailable.
Who it's for
CloneTTS is aimed at Android users who listen to books or long texts and want a personalized or familiar voice reading to them, especially those who want this to work offline. It suits both casual users (who just want to set a custom voice and read) and power users (who want fine control over pronunciation rules, sentence splitting, HTTP API integration, and multi-role reading). It also targets users with newer Qualcomm Snapdragon flagship phones who can benefit from NPU hardware acceleration for faster, cooler synthesis.
Highlights
- Offline voice cloning: Record 1–3 seconds of speech to create a custom voice, with all inference running locally on-device
- System TTS integration: Registers as an Android system TTS engine, compatible with popular reader apps like Legado and Moon+ Reader
- NPU hardware acceleration: On supported Qualcomm Snapdragon flagships (8 Gen 2 / 8 Gen 3 / 8 Elite / 8 Elite Gen 5), offloads synthesis to the NPU for roughly 2× speed and lower heat
- PC & OpenAI-compatible TTS: Can connect over LAN to a companion PC server or any OpenAI-compatible
/v1/audio/speechbackend, unlocking Japanese, Korean, and European languages with automatic fallback to offline voices - HTTP API server: Built-in local server supporting GET and POST requests, including multi-role reading endpoints for character-based narration
- Pronunciation correction: Custom plain-text or regex-based substitution rules to fix mispronounced characters or names
- Speed & volume control: 0.5x–2.0x speech rate and 0%–200% volume
- Voice backup: ZIP-based export/import with append or overwrite modes
- Real-time performance monitoring: Built-in benchmark and RTF (Real-Time Factor) monitoring to verify your device can handle real-time synthesis
Related
- Project
- Project
- Project
- Project
- Project