Offline speech-to-text on Android with OpenAI Whisper + TensorFlow Lite
Privacy-first · On-device · Java & Native samples
Run Whisper-class ASR on the phone without sending audio to a server for transcription. This project ships:
| Path | What you get |
|---|---|
whisper_java |
TFLite Java sample — easiest way to integrate |
whisper_native |
TFLite Native sample — higher performance |
models_and_scripts |
Python conversion + generated TFLite models |
| Recorder + Whisper APIs | Record or feed WAV → get transcript callbacks |
Audio format for files: 16 kHz, mono, 16-bit WAV.
WhisperNote is the full notes experience (import, edit, translate, summarize, Drive backup, voice keyboard).
This repository remains the open-source TFLite reference.
- Open
whisper_javain Android Studio - Build & run on a device or emulator
- Open
whisper_nativein Android Studio - Build & run
See models_and_scripts/ — generate_model.py and the generated_model folder.
Whisper whisper = new Whisper(this);
whisper.loadModel(modelPath, vocabPath, true); // multilingual
whisper.setListener(new IWhisperListener() {
@Override public void onUpdateReceived(String message) { }
@Override public void onResultReceived(String result) {
// transcript text
}
});
whisper.setFilePath(waveFilePath); // 16k mono 16-bit WAV
whisper.setAction(Whisper.ACTION_TRANSCRIBE);
whisper.start();Recorder follows the same listener pattern for live capture — see the sample apps.
- Landing page: wavebasics.com/products/whisper-android
- WhisperNote (Play): com.wavebasics.whispernote
- Support: support@wavebasics.com
If this helps your app, a ⭐ on GitHub is appreciated.
PayPal: paypal.com/vilassn
Built on the OpenAI Whisper family of models and TensorFlow Lite. See upstream Whisper licensing for model weights.
This project uses the following open-source implementation:
- Niranjan Yadla (2022)
Whisper TFLite: OpenAI Whisper Model Port for Edge Devices
https://github.com/nyadla-sys/whisper.tflite
@misc{nyadla-sys,
author = {Niranjan Yadla},
title = {{Whisper TFLite: OpenAI Whisper Model Port for Edge Devices}},
year = 2022,
howpublished = {GitHub Repository},
url = {https://github.com/nyadla-sys/whisper.tflite},
note = {Original TFLite implementation of OpenAI Whisper for on-device automatic speech recognition}
}