Skip to content
codewith-rafiPublic

About

AI voice dictation for Android - speak naturally, get clean text typed into any app. System-wide speech-to-text with AI formatting, floating mic, meetings, and on-device mode.

Topics

Resources

Accessibility

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Clairo

AI voice dictation for Android — speak naturally, get clean text typed into any app.

Clairo turns speech into polished writing with auto punctuation, context-aware formatting, and system-wide insertion. Dictate from a floating mic or Quick Settings tile without leaving the app you’re already in.

3rd place · Southwest Division — 2026 China College Computer Competition · AIGC Innovation Competition

Clairo app showcase


Why Clairo

Most voice typing dumps raw transcripts. Clairo is built as an AI writing layer on top of speech-to-text: it cleans filler words, applies punctuation, matches your tone, and inserts the result at the cursor — in messaging, email, notes, or the browser.

Hands-free typing Speak instead of tapping — ideal for long replies and drafts
Works in any app Accessibility-powered insertion into the focused text field
Context-aware AI Formats for personal chat, work chat, or email styles
Cloud or on-device ASR Accurate cloud recognition by default; private offline mode optional
Meeting capture Long-form recording, transcripts, and an AI meeting assistant

Features

System-wide voice dictation

  • Floating microphone — appears over text fields; drag to move or snooze
  • Quick Settings tile — one-tap start/stop from the shade
  • Persistent notification — dictation without opening the app
  • Direct text insertion — types into the active field (clipboard fallback when needed)

AI cleanup & writing styles

  • Auto punctuation & capitalization from natural speech
  • Per-app writing styles — Personal, Work, and Email
  • Output tone — formal, casual, or very casual rewrite
  • Bring your own key (BYOK) — configure LLM providers in Settings

Speech recognition

  • Cloud ASR — long-form speech recognition (default)
  • On-device STT — SenseVoice via Sherpa-ONNX for private, offline use
  • Bilingual — Chinese and English, including mixed speech

Meetings & insights

  • Meeting mode — record up to long sessions, then transcribe
  • Meeting assistant — summarize, list action items, draft follow-ups
  • History & insights — recent dictations and activity at a glance

Experience

  • Guided onboarding (permissions, accessibility, floating mic)
  • English / Chinese UI
  • Dark-first Material design with live audio visualization

How it works

  1. Focus any text field and tap the floating mic (or the Quick Settings tile).
  2. Speak naturally — Clairo captures audio and runs speech-to-text.
  3. AI formats the transcript for your current app context and tone.
  4. Clean text is inserted at the cursor. Done.

Optional: open Meeting for longer recordings, then use Assistant on the transcript.


Architecture

Clairo uses a native-first pipeline so dictation keeps working when the Flutter UI is closed:

Triggers (floating mic / QS tile / notification)
        │
        ▼
DictationForegroundService (Kotlin)
  ├── Audio capture (PCM)
  ├── ASR (cloud or on-device SenseVoice)
  ├── LLM cleanup / tone rewrite
  └── Accessibility insert (or clipboard)
        │
        ▼
Flutter app — home, styles, meetings, settings, history
Layer Role
Kotlin Recording, ASR, LLM calls, overlays, Quick Settings, accessibility
Flutter Onboarding, dashboard, styles, meetings, insights, BYOK settings
SQLite Shared session history between native and UI

Tech stack

  • Flutter + Riverpod + go_router
  • Kotlin foreground service, AudioRecord, OkHttp
  • Sherpa-ONNX + SenseVoice (optional on-device ASR)
  • Android Accessibility Service for insertion & app context
  • OpenAI-compatible LLM APIs (BYOK)

Documentation

Doc Description
SETUP.md Developer environment — clone to running build
ARCHITECTURE.md Folder layout and data flow
ACCESSIBILITY.md Accessibility service & text insertion
SHERPA_SETUP.md On-device model & AAR download
THEME.md Design tokens and typography
PROVIDERS.md Riverpod providers

Quick start

Requirements: Flutter SDK ^3.11.4 · Android SDK API 33+ · JDK 17 · real Android device (accessibility is unreliable on emulators)

git clone https://github.com/codewith-rafi/clario.git
cd clario
flutter pub get
  1. Create android/local.properties with your SDK paths — see SETUP.md.
  2. For on-device ASR: add sherpa-onnx.aar and SenseVoice model files — see SHERPA_SETUP.md.
  3. Run:
flutter run

Release APK:

flutter build apk --release

Output: build/app/outputs/flutter-apk/app-release.apk


Device setup

  1. Install and complete onboarding.
  2. Grant microphone, notifications, and display-over-other-apps.
  3. Enable Clairo under Settings → Accessibility.
  4. Add the Clairo tile to Quick Settings (optional).
  5. Add an API key in Settings → API Configuration for AI cleanup / meetings.
  6. Focus a text field, tap the floating mic, speak, tap again.

Project layout

clairo/
├── android/app/src/main/kotlin/   # Dictation engine, ASR, LLM, overlays
├── lib/                           # Flutter UI
├── docs/screenshots/              # Product screenshots for README
├── SETUP.md
├── ARCHITECTURE.md
└── pubspec.yaml

Contributing

  1. Branch from main: git checkout -b feature/your-change
  2. Test on a physical Android device
  3. Run flutter analyze (and tests if applicable)
  4. Keep secrets out of commits (Keys.kt, dart_defines.json, API keys)
  5. Open a pull request

License

Licensed under the MIT License.


Acknowledgements

Built by Team Clairo (Sichuan University).
Awarded 3rd place in the Southwest Division at the 2026 China College Computer Competition — AIGC Innovation Competition.

About

AI voice dictation for Android - speak naturally, get clean text typed into any app. System-wide speech-to-text with AI formatting, floating mic, meetings, and on-device mode.

Topics

Resources

Accessibility

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages