The phone records, transcribes, and takes notes β independently. On-device capture, on-device whisper.cpp, notes through the cloud AI you configure once β plus a live Android 16 notification with the recording's own progress bar and Pause/End controls on it.
This is the native Android companion to transcribe-livenotes β the desktop/web app (Node + whisper.cpp + Ollama/cloud) it grew out of. The phone is the client of record here: sessions mirror the desktop's on-disk layout, so a future sync pushes them into a desktop server untouched.
- Record β every session streams its raw audio to
recording.wav(16 kHz mono PCM) as it's captured; hour-long sessions cost flat RAM, and a crash mid-session is repaired on the next playback or share. Pause stops the audio file and the transcription (recorder-style compressed timeline); the βΊ clock reads the WAV's own length every second, so it never lies. - Live transcribe β realtime-first ladder: whisper.cpp runs on-device (NEON path, model downloaded in-app); if you switch on cloud STT, utterances upload to a
/audio/transcriptions-compatible host under the same key the notes AI uses (~1 s round trip), and any miss β offline, bad key, wrong host β falls through to whisper instantly. Traditional Chinese (ηΉι«δΈζ) anchors the output script through a conditioning prompt on both engines; per-session language beats the global default. - Live AI notes β the cloud model compiles new transcript material into growing markdown bullets every ~20 s while talk happens (decoupled: the model's slowness never blocks speechβtext). A per-session toggle at the start page turns notes off for the session; still flippable mid-session.
- Post-recording analyze β end a session (the wind-down: the tail utterances drain onto the transcript, one final notes pass runs, stages shown), then β¨ Re-analyze the full transcript into Key points / Decisions / Action items / Open questions / Highlights β analysis runs are kept (
analysis.md+ numbered archives). - Session metadata β name (display), topic (the AI's session context β never displayed, it steers every live-notes call and the re-analysis), language, and the live-notes toggle, all per session.
Everything β transcript (spoken-at HH:MM stamps), notes, analyses, audio β shares via the system sheet as real files (.txt / .md / .wav), and session titles can be renamed after the fact.
On Android 16+ the foreground-service notification is a ProgressStyle live notification (NotificationCompat.ProgressStyle + setRequestPromotedOngoing, POST_PROMOTED_NOTIFICATIONS in the manifest): the progress bar is the session's audio timeline β one segment per minute, deep purple where the VAD heard speech β with the tracker riding the file's head. Pause and End sit right on it and work from the lockscreen. Below Android 16 it renders as a plain ongoing notification. POST_NOTIFICATIONS is prompted on first mic grant.
microphone ββ AudioRecord 16 kHz βββΆ foreground service βββΆ RMS VAD (400 ms pre-roll,
800 ms end-silence β same constants
as the desktop's useRecorder.js)
β
recording.wav βββ every frame βββββ€ (lossless path, never gated by STT)
β
βΌ
realtime-first ladder:
cloud /audio/transcriptions (when switched on)
β whisper.cpp on-device fallback (NDK/JNI)
β
transcript "- [HH:MM] text" (spoken-at)
β
filesDir/data/sessions/<slug>/ βββ persistence (desktop's layout)
β
βΌ
cloud AI (OkHttp, OpenAI-compatible or
Anthropic Messages or Ollama): live-notes
ticker (~20 s) + end-of-session re-analysis β¨
- Foreground service (
FOREGROUND_SERVICE_MICROPHONE) β capture continues with the screen off; that's the native advantage a PWA never had. A session left with the screen away re-opens straight into recording mode. - whisper on-device β the model (~57 MB
ggml-baseone-time download inside the app) lives infilesDir/models, loaded once, shared; quality presets up tolarge-v3-turboare one tap in settings (the realtime-first ordering favors the fast model on phones). The JNI grew apromptargument (initial_prompt+carry_initial_prompt) for script anchoring. - Timestamps stay spoken-at β they come from the VAD chunker on this side, matching the desktop's contract.
- Cloud AI is the notes engine (desktop decision D6/D8) β notes stream token-by-token into a live markdown panel; the same configured key powers cloud STT. One key, two uses.
- API key on the device β the documented posture change from the desktop: the key is wrapped with an AndroidKeyStore AES/GCM key and never read back to the screen.
- Sessions live in
filesDir/datain the desktop's exact layout:sessions.json(index: slug/title/timestamps/language/topic) + per-slugtranscript.md,latest.txt,autonotes.md,analysis.md(+analysis-N.mdruns),recording.wav.
Download the .apk from the latest release, then either:
adb install -r livenotes-debug.apk
or open it on the phone and let the installer handle it (the debug key signs these builds; for daily use, build your own as below).
- Android Studio (Ladybug or newer) with the NDK 28.2+ and CMake 3.22+ (SDK Manager). AGP 8.9.1 / Gradle 8.11.1 / compileSdk 36 β the wrapper handles Gradle.
- Vendor the engine:
(
git clone https://github.com/SynesisLab/livenotes-android cd livenotes-android git submodule update --init app/src/main/cpp/whisperwhisper.cppis a git submodule β clone with--recurse-submodulesand skip this.) - Open the project, let it sync, run on an arm64-v8a device (or x86_64 emulator).
- First run: allow microphone (+ notifications) β settings β β€ download a whisper model β paste your cloud key/base URL/model β β‘ Test connection β back out and record.
- Kotlin + Compose (Material3), no third-party UI libs; OkHttp is the only network dependency;
org.json(platform-embedded) for JSON β keeping the desktop repo's "no surprise dependencies" ethos. - Everything under
filesDir/datamirrors the desktop tree; never commit or sync that directory. - Prompt texts are cross-repo-locked to
transcribe-livenotes'server/ai/prompts.jsβ an intentional duplication with a sync comment on both sides (the session-topic fold-in uses the desktop's exactprofileCtxshape).
MIT β see LICENSE.