← Open Source

Offline Speech Recognition with OpenAI Whisper and TensorFlow Lite for Android.

ApplicationsSpecialistsC++
Momentum
+0stars in 24 hours0.0%
696
Stars
112
Forks
+1
This week
3
Contributors
Created 2023-08-26 · Updated 2026-12-02 · #18974 today
Top developers
vilassnmahmoud-o-lbsergenes
README

Whisper Android

Offline speech-to-text on Android with OpenAI Whisper + TensorFlow Lite
Privacy-first · On-device · Java & Native samples


Why this repo

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.

Product app on Play

WhisperNote is the full notes experience (import, edit, translate, summarize, Drive backup, voice keyboard).
This repository remains the open-source TFLite reference.

Quick start

Java app

  1. Open whisper_java in Android Studio
  2. Build & run on a device or emulator

Native app

  1. Open whisper_native in Android Studio
  2. Build & run

Generate models

See models_and_scripts/ — generate_model.py and the generated_model folder.

Integrate Whisper (Java sketch)

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.

Links

Support the project

If this helps your app, a ⭐ on GitHub is appreciated.
PayPal: paypal.com/vilassn

Acknowledgements

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:

@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}
}
Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store