dengxuezhao

TypeFree

dengxuezhao

TypeFree is an open-source Android AI voice keyboard with a global floating capsule (Kotlin 2.0 + Compose 1.7 + Material 3, GPL-3.0): BYOK with your own key for DeepSeek `/v1/tools/asr`, Gemini Live, Doubao SeedASR 2.0 and DashScope realtime streaming, plus a bundled librime 1.17.0 engine; v3.5.1, minSdk 26.

v4.0.2
Published at
13h ago
128
Stars
1.0k
Download

Latest release

v4.0.2Dec 5, 2026, 02:21 PM
Downloads slow? Switch the source anytime above

README

Project Overview

Commercial voice keyboards usually charge a subscription and raise privacy questions — TypeFree answers with BYOK: your API key goes straight to the model vendor, no subscription, no third-party collection. The UI is native Kotlin + Jetpack Compose + Material 3, and beyond dictation it ships a global floating capsule and a local pinyin engine.

Item Value
Platform Android (minSdk 26 / Android 8.0+, targetSdk 35)
Stack Kotlin 2.0 + Jetpack Compose 1.7 + Material 3
Version v3.5.1
License GPL-3.0

A bring-your-own-key voice keyboard that removes both the subscription and the privacy barrier.

Key Features

  • One key, whole pipeline: a DeepSeek key drives stage-one listening (POST https://api.deepseek.com/v1/tools/asr), stage-two spoken-language cleanup / quick translation, and the Compose / Ask AI / Jev advisor features; uploads are 16kHz mono WAV sending only the file field, letting the server detect the language
  • Multi-vendor realtime streaming: Gemini Live WebSocket (BidiGenerateContent), Doubao SeedASR 2.0 and Alibaba DashScope realtime streaming; per-vendor keys sit in an encrypted vault
  • Local pinyin engine: the :rime NDK module compiles librime 1.17.0 with the lua / octagram / predict plugins into an arm64-v8a library, bundling Rime Ice full pinyin, Xiaohe double pinyin and Xiaohe phonetic-shape, with SHA-256-verified download of the 580k-entry dictionary
  • Screen-aware AI replies: on Android 11+ (API 30+) an on-demand AccessibilityService.takeScreenshot() captures the chat viewport, crops status bar and keyboard, and uploads a scaled JPEG that is discarded immediately — tuned for WeChat's MMNeat7extView and QQ NT's AIO custom-drawn bubbles
  • On-device redaction: phone numbers, ID numbers, bank cards and WeChat IDs become placeholders such as [手机号_1] before upload and are restored locally; password fields and IME_FLAG_NO_PERSONALIZED_LEARNING trigger incognito mode
  • Keyboard feel: a 252dp compact four-row 26-key layout with upper-row secondary symbols, five key-area heights (268dp-333dp) plus a lift mode; streaming dictation writes as you speak, with silent-boundary session rotation on long recordings
  • Clipboard 2.0: extracts Cainiao shelf codes, Hive pickup codes, courier numbers and multi-entity "name + phone + address" in parallel chips, with a local word-splitting tool for long text

Quick Start

  1. Install TypeFree-v3.5.1-release.apk from Releases
  2. Enable TypeFree in system settings and set it as default
  3. Open the provider vault, enter your key, and enable screen reading, voice and cleanup as needed
  4. Hold the mic to dictate, or tap Compose / Ask AI on the keyboard top bar

System Requirements

Item Requirement
OS Android 8.0+ (minSdk 26)
Architecture arm64-v8a (native Rime library)
Network your own vendor API for voice and cleanup

Notes

  • GPL-3.0: modified distributions must stay open under the same license
  • BYOK means you pay the vendor: long recordings consume quota quickly
  • Screen reading is sensitive: screenshots happen only on manual taps, but grant it only to builds you trust

Release history

Sort