Hold a button, talk to your AI. A push-to-talk voice bridge for Android.
Press and hold a hardware button, speak, release — ClawPTT transcribes your words, sends them to
any OpenAI-compatible chat gateway, and streams the reply back, spoken aloud. Follow-ups open a
persistent chat page (with a typed-input box and a mute toggle). Built for the Rabbit R1, but it
works on any Android device that can emit a KEYCODE_BUTTON_1 press.
Heads up — this is an enthusiast app. It's unofficial, needs a bit of setup, and expects you to bring your own chat endpoint. Not affiliated with Rabbit Inc. Use at your own risk (MIT, no warranty). Part of a larger toolkit — see rabbit-r1-openclaw for the full R1 ROM/root/self-hosting setup.
The voice loop
- 🎙️ Push-to-talk from a hardware button — press and hold to talk, release to send. Captured globally, even on the lock screen, via an AccessibilityService (it's used only to catch the button).
- 🔁 Transcribe → gateway → spoken reply, streamed token-by-token so speech starts as soon as the first sentence lands.
- ⚡ Instant feedback — the "Listening" panel appears ~150 ms after you press.
- 👀 Live transcription preview — on-device Vosk shows your words as you speak while a cloud engine produces the accurate final.
- 🔒 Lock-screen native — the panel wakes the display and works over the keyguard; the pop-up panel appears anywhere you hold the button.
Speech in / out — your choice of engines
- STT: on-device Vosk (offline) · self-hosted Whisper · OpenAI · Venice.ai · Android SpeechRecognizer / whisperIME.
- TTS: on-device SherpaTTS (offline) · self-hosted Kokoro · Venice.ai (Kokoro, ElevenLabs, xAI, Orpheus, Chatterbox HD — live model/voice pickers) · ElevenLabs direct.
- Speak-aloud or text-only mode, mute / stop-speaking, pre-generated audio, and smooth buffering on cellular.
Conversations
- 💬 Persistent chat page with a typed-input box for when you'd rather type than talk.
- 🗂️ Named, resumable conversations — switch between threads, rename, and delete (removes it locally and lets the gateway archive the session).
- 📋 Long-press any answer to Copy or Play it again.
- 🔔 Async fire-and-forget — navigate away during a long agent task and get a notification when it finishes.
Agent & gateway control
- 🤖 Agent picker — pick from the gateway's live
/v1/modelslist. - 🧠 Editable system prompt with an R1-tuned default (short, spoken, markdown-free replies).
- 🎚️ Model override (
x-openclaw-model), stable per-device session for one continuous conversation,clawpttchannel labeling, and auto-reconnect.
Button gestures
- Hold = talk · triple-click = lock the display · double-click = reserved for camera vision (coming).
Rabbit R1 niceties
- 🎡 In-app volume via the scroll wheel · 🔤 chat text-size slider · 🎨 themed openclaw UI.
- 🔋 Power saver — cut all radios when the screen's off, restored on wake or PTT (needs root).
- Locking dismisses the app cleanly so the clock is visible; the next press starts fresh.
![]() Listening |
![]() Thinking |
![]() Speaking |
![]() Chat page |
![]() Conversations |
![]() In-app volume |
![]() Settings |
![]() STT / TTS engines |
![]() Async reply |
- Android 9+ (
minSdk 28). Built and daily-driven on Android 14 (LineageOS 21 GSI) on a Rabbit R1. - An OpenAI-compatible
/v1/chat/completionsendpoint + bearer token — your own gateway (e.g. a self-hosted OpenClaw), a local LLM server, or any compatible provider. This is the one thing ClawPTT can't do without. - A hardware button that emits
KEYCODE_BUTTON_1for push-to-talk:- Rabbit R1: the side button reports scancode
116— remap it toBUTTON_1with the keylayout Magisk module in rabbit-r1-openclaw. - Other devices: any
BUTTON_1source works — a Bluetooth gamepad button, a key-remapper app, etc.
- Rabbit R1: the side button reports scancode
- The ClawPTT accessibility service enabled — that's how it captures the button globally, including on the lock screen. It's used only to catch that key; the source is here, audit it.
- Unofficial / trademarks. Not affiliated with, endorsed by, or supported by Rabbit Inc. "Rabbit" and "rabbit r1" are trademarks of their owner.
- Root is optional. The core voice loop needs no root. Only the "Airplane when idle" power saver uses root (via Magisk).
- Secrets stay on your device. Gateway URL/token and any API keys are entered on-device and
stored with
EncryptedSharedPreferences— nothing is hardcoded or bundled. Point ClawPTT only at servers you trust, and prefer a private network (e.g. Tailscale) for self-hosted endpoints. - On cellular, network TTS buffers the whole clip before playing (smooth); Wi-Fi streams for low latency. Toggle in Settings → Behavior.
Option A — download the APK from Releases. It's a debug-signed build, so enable "install unknown apps" for your file manager; updates come from here, not the Play Store.
Option B — build from source:
export JAVA_HOME=/path/to/jdk-17 ANDROID_HOME=/path/to/android-sdk
./gradlew assembleDebug
adb install -r app/build/outputs/apk/debug/app-debug.apkThen: enable ClawPTT's accessibility service, open the app, set your gateway URL + token, pick your STT/TTS, and (on the R1) flash the PTT keylayout module so the side button works.
Hold the button, speak, release. Text streams in and (if enabled) is spoken. Hold again to continue — after the first reply it opens a persistent chat page with a typed-message box and a mute toggle. There's also a Quick "New chat" to reset the conversation.
MIT. Third-party components (Figtree font — OFL; Vosk; OkHttp; AndroidX; the Venice/ OpenAI/ElevenLabs APIs you opt into) belong to their respective owners.









