AI Keyboard
A privacy-first, on-device AI typing assistant and hands-free macro automation utility powered by local LLMs and Android Accessibility APIs.
<12ms
Real-time on-device inference
+50%
Reduced keystrokes via LLM
32MB
Low-overhead background execution
Offline
No internet connectivity needed
Interface Preview
Interactive HTML interface mockup mapping suggestions.
System Architecture
To achieve sub-15ms typing response on mid-range Android hardware, the keyboard runs a dual-layer thread scheduler. The user input loop is isolated from the heavier machine learning execution paths.
Embedded NDK layer captures microphone buffers with noise cancellation.
TensorFlow Lite parses language structures directly in native memory.
Android Accessibility nodes are crawled to discover active UI boundaries.
Dispatches touch events to automate workflows based on voice intent.
Implementation Achievements
Implemented TensorFlow Lite custom delegate model utilizing Android GPU parallel compute scripts (OpenCL) to run model inferences in under 12ms.
Designed fallback offline vocabularies to scale predictions seamlessly across devices with minimal memory profiles.
Mapped Android Accessibility Node hierarchies to build voice macros, allowing fully automated app controls like drafting and clicking.
Written completely inside memory-managed native C++ boundaries with JNI buffers to prevent JVM Garbage Collector execution stutters.