Retrieved article excerpt
Open article Β· Retrieved 2026-11-17T20:21:57.727631+00:00
# π tts-server-proxy
**A real Android system TTS engine that speaks with your own self-hosted Qwen3-TTS voices.**
Every app on your phone β readers, assistants, accessibility tools β talks with the voices
running on **your GPU, on your LAN**. No cloud, no subscriptions, no per-character fees.
[Platform](https://camo.githubusercontent.com/989566ef49862a750919fc443d40b05926366606dd61bbafd0bf4fbc4c15bd41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d416e64726f6964253230382e302532422d3344444338343f6c6f676f3d616e64726f6964266c6f676f436f6c6f723d7768697465)
[API](https://camo.githubusercontent.com/a08461a975d7cb0c6d549b4f6aa6b7bcb97792b84202f376d03a5274da677652/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4150492d323625453225383025393333352d313536354330)
[Release](https://camo.githubusercontent.com/bee8bedf4a32bd5fdf8660d0d56289688c1cca20a403191485ba34c54dee87d9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d76302e362e312d314538384535)
[License](https://camo.githubusercontent.com/983d4359659e5a2c96c77d98d5ef94b6b62d718a4a78082edf59726cc3a1903f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)
[Cloud](https://camo.githubusercontent.com/2149837c08d4dc732113ab220072d63f2a2d8e2b20d20e77788296a6f407b41e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636c6f75642d6e6f6e652d73756363657373)
[Installation](https://github.com/manu69x/tts-server-proxy#-installation) Β· [How it works](https://github.com/manu69x/tts-server-proxy#-how-it-works) Β· [Server setup](https://github.com/manu69x/tts-server-proxy#-server-side) Β· [Troubleshooting](https://github.com/manu69x/tts-server-proxy#-troubleshooting)
---
## π€ Why
Android's built-in TTS voices are robotic, locked to Google's cloud, or missing entirely for
your language. If you run a **Qwen3-TTS** server (or any OpenAI-compatible speech endpoint)
you already have great, clonable voices β but Android apps can't use them.
**tts-server-proxy** bridges that gap: it installs as a *first-class* `TextToSpeechService`,
so it appears in **Settings β System β Languages & input β Text-to-speech output** like any
commercial engine. Whatever the system asks it to speak, it synthesizes on your server and
streams back to the app that requested it.
Use cases:
- π Read e-books and articles with a cloned voice you actually like
- π£οΈ Accessibility: give your phone a family member's voice
- π Multi-language setups: one voice per language, switchable by any app
- π Keep speech **100% on your network** β nothing ever leaves your LAN
## βοΈ How it works
```
ββββββββββββββββ TextToSpeech API ββββββββββββββββββββββ OpenAI-compatible βββββββββββββββββββββββ
β Any Android β ββββ bind βββββββββΊ β tts-server-proxy β ββββ POST ββββββββββΊ β Your GPU server β
β app β βββ PCM 16-bit ββββ β (system engine) β βββ WAV/MP3 ββββββββ β Qwen3-TTS β
ββββββββββββββββ ββββββββββββββββββββββ /v1/audio/speech βββββββββββββββββββββββ
```
The app speaks OpenAI's audio-speech dialect:
```
POST {endpoint}/v1/audio/speech
{
"model": "qwen3-tts-1.7b_G0",
"voice": "clone:VoceItalianaAdulta",
"input": "Text to speak",
"response_format": "wav"
}
```
- **Native WAV β PCM** path with zero transcoding; MP3 (or anything `MediaCodec` plays) is
decoded automatically as a fallback.
- **One model = one Android voice.** Configure as many as you want, per language; apps pick
them with the standard voice picker.
- **Cold-start proof**: if your server is asleep, the engine waits (wake-on-LAN + boot +
model load can take minutes β read timeout is 420 s), runs as a **foreground service**
while synthesizing so Android can't kill it with the screen off, and **retries fast
network failures** automatically.
- Requests are cancelled silently β no scary "Speech engine problem" dialogs.
## π± Installation
### Option A β prebuilt APK
1. Grab `tts-server-proxy-v0.6.1.apk` from the [latest release](https://github.com/manu69x/tts-server-proxy/releases/latest)
(or from [`apk/`](https://github.com/manu69x/tts-server-proxy/blob/main/apk) in this repository).
2. Install it (allow "install unknown apps" if asked).
3. Open the app: endpoint, model and voice come **pre-filled with a sensible default** β
edit them, paste your API key, tap **πΎ Save configuration**.
4. Select the engine:
*Settings β System β Languages & input β Text-to-speech output β **tts-server-proxy***
5. Hit **π Test synthesis** inside the app and listen. π§
> The engine also works **before you ever open the app**: if no configuration is found,
> built-in defaults are used, so a fresh install (or a reboot) keeps talking.
### Option B β build from source
```
git clone https://github.com/manu69x/tts-server-proxy.git
cd tts-server-proxy
export ANDROID_HOME=/path/to/android-sdk
gradle :app:assembleRelease # or :app:assembleDebug for a debug build
```
Requirements: JDK 17, Android SDK 35, Gradle 8.10+ (AGP 8.6). Release builds expect
`app/keystore.properties` + `app/release.keystore.jks` (not committed β see below);
debug builds work out of the box.
## π₯οΈ Server-side
Any endpoint that accepts OpenAI-style `/v1/audio/speech` and returns WAV/MP3 audio will
work. The stack this app was built and tested against:
```
Android phone
β Phoenix (wake-on-LAN proxy, OpenAI-compatible front door)
β llama-swap (model router / pool, GPU instances)
β Qwen3-TTS (FastAPI serving Qwen3-TTS 0.6B/1.7B models on one or more GPUs)
```
You don't need all of that β a single FastAPI service exposing `/v1/audio/speech` is enough.
Quick sanity check from any machine on the LAN:
```
curl -X POST http://YOUR_SERVER:PORT/v1/audio/speech \
-H "Content-Type: application/json" -H "Authorization: Bearer sk-..." \
-d '{"model":"qwen3-tts-1.7b_G0","voice":"clone:MyVoice","input":"hello","response_format":"wav"}'
```
### No Linux box? Ready-made compatible servers
Any OpenAI-compatible `/v1/audio/speech` server works β including **native
Windows options** that need nothing but a double-click:
| Server | Difficulty | GUI | Cloning | Italian | Docs |
| --- | --- | --- | --- | --- | --- |
| **Chatterbox-TTS-Server** | β
ββ Easy (Windows portable, zero install) | β
| β
| β
| [guide](https://github.com/manu69x/tts-server-proxy/blob/main/docs/servers/chatterbox-tts-server.md) |
| **Kokoro-FastAPI** | β
β
β Medium (Windows/uv or Docker) | β
| β preset voices | β
| [guide](https://github.com/manu69x/tts-server-proxy/blob/main/docs/servers/kokoro-fastapi.md) |
| **AllTalk TTS V2** | β
β
β Medium (Windows setup script) | β
| β
XTTS | β
| [guide](https://github.com/manu69x/tts-server-proxy/blob/main/docs/servers/alltalk-tts-v2.md) |
| **Qwen3-TTS on Linux** | β
β
β
Advanced | β | β
zero-shot | β
| [guide](https://github.com/manu69x/tts-server-proxy/blob/main/docs/servers/qwen3-tts-linux.md) |
Full comparison + per-server install instructions and the exact app config:
**[docs/servers/README.md](https://github.com/manu69x/tts-server-proxy/blob/main/docs/servers/README.md)**.
## πΌοΈ Screenshots
| Configuration | Synthesis test | Diagnostics |
| --- | --- | --- |
| [Configuration](https://github.com/manu69x/tts-server-proxy/blob/main/docs/screenshots/main.png) | [Test](https://github.com/manu69x/tts-server-proxy/blob/main/docs/screenshots/test.png) | [Diagnostics](https://github.com/manu69x/tts-server-proxy/blob/main/docs/screenshots/diagnostics.png) |
Material 3 UI, follows system dark mode. One model in the list = one voice in Android's
voice picker.
## π§° Features
- β
Genuine system TTS engine (`TextToSpeechService`, `BIND_TEXT_TO_SPEECH_ENGINE`)
- β
Android 8.0+ (API 26), tested on Android 15/16
- β
Unlimited models/voices, per-language, switchable from any app
- β
Material 3, dark mode, zero-clutter setup with working defaults
- β
Foreground service + progress notification during synthesis
- β
Config backup/restore via `adb push` (one-tap import in the Diagnostics screen)
- β
In-app service log (works even on ROMs where `logcat` is disabled)
- β
API key stored only on the device, sent as `Authorization: Bearer`
- β
Zero telemetry, zero cloud
## π Troubleshooting
| Symptom | Cause / fix |
| --- | --- |
| Engine doesn't appear in the TTS list | Reboot once after install; the engine registers itself β no account needed |
| First synthesis takes 10 sβ3 min | **Cold start**: the server wakes and loads the model. Next requests are fast (~3 s) |
| "Speech engine problem" dialog | Update to β₯ v0.3.2 β cancelled requests no longer surface errors |
| No audio on some servers | The app auto-detects MP3 and decodes it; ensure the endpoint returns valid audio |
| Wrong voice used by default | The engine picks the **first model matching the requested language** β order your model list accordingly |
| Need to see what's happening | Open **Diagnostics** β *π debug.log*: the service logs every synthesis step there |
## π Privacy & security
Speech, text and API key never leave your LAN. HTTP is used in cleartext by design β run it
on a network you trust (or wire up TLS on your front proxy). Signing keys are **not** in this
repository: `app/keystore.properties` and `app/release.keystore.jks` are gitignored; generate
your own with `keytool` to sign your builds.
## π License
[MIT](https://github.com/manu69x/tts-server-proxy/blob/main/LICENSE) β Β© 2026 Emanuele Viani
---
Built with π§ by [@manu69x](https://github.com/manu69x) β voices by [Qwen3-TTS](https://github.com/QwenLM/Qwen3), routing by [llama-swap](https://github.com/mostlygeek/llama-swap).
Another project by the same author: [**Battery Test**](https://batterytest.altervista.org) β measure your laptop's real battery life with a server-verified test. Free, no registration.