GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mthelpme/clawptt: Push-to-talk voice bridge for Android — hold a button, talk to any OpenAI-compatible gateway. Built for the Rabbit R1.

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
assets
assets
 
 
design
design
 
 
gateway-plugin/clawptt-prompt
gateway-plugin/clawptt-prompt
 
 
gradle/wrapper
gradle/wrapper
 
 
screenshots
screenshots
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

openclaw mascot

ClawPTT

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.

Features

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/models list.
  • 🧠 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, clawptt channel 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.

Screenshots


Listening

Thinking

Speaking

Chat page

Conversations

In-app volume

Settings

STT / TTS engines

Async reply

Requirements

  • Android 9+ (minSdk 28). Built and daily-driven on Android 14 (LineageOS 21 GSI) on a Rabbit R1.
  • An OpenAI-compatible /v1/chat/completions endpoint + 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_1 for push-to-talk:
    • Rabbit R1: the side button reports scancode 116 — remap it to BUTTON_1 with the keylayout Magisk module in rabbit-r1-openclaw.
    • Other devices: any BUTTON_1 source works — a Bluetooth gamepad button, a key-remapper app, etc.
  • 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.

Caveats

  • 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.

Install

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.apk

Then: 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.

Usage

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.

License

MIT. Third-party components (Figtree font — OFL; Vosk; OkHttp; AndroidX; the Venice/ OpenAI/ElevenLabs APIs you opt into) belong to their respective owners.

About

Push-to-talk voice bridge for Android — hold a button, talk to any OpenAI-compatible gateway. Built for the Rabbit R1.

Topics

accessibility-serviceandroidopenai-compatiblepush-to-talkrabbit-r1voice-assistant

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.