ProAndroidDev
Read post

From Cloud LLM to On-Device Whisper: Turning Speech into Structured Actions on Android

A hands-on exploration of building a fully on-device voice-to-structured-action feature on Android, replacing a cloud-based Gemini/Firebase AI Logic approach. The implementation uses whisper.cpp (a C/C++ runtime for OpenAI's Whisper model) via JNI for local speech transcription, and a deterministic Kotlin rule-based parser instead of an LLM for extracting structured payment intents. Key topics covered include Gradle NDK/CMake setup, audio capture and PCM-to-float conversion, model download and SHA-256 verification, native memory lifecycle management, and the trade-offs between cloud LLM flexibility versus on-device privacy, offline support, and determinism.

    #android#kotlin#local-ai
Jul 28•9m read time•From proandroiddev.com
Post cover image
Table of contents
Whisper as a black boxFeeding the model: audio captureModel managementDeterministic parser
238 Impressions
ProAndroidDev's image
ProAndroidDev

Pand's Blog provides developers with tutorials, tips, and insights on web development, frontend tech...

441 Followers

•

1.7K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard