- install Docker on your platform.
- clone the whisper.cpp repo somewhere:
git clone https://github.com/ggerganov/whisper.cpp - change dir to the repo:
cd whisper.cpp - download one of the models from here (any of the
.binfiles should do the trick) and put them in theexamples/whisper.android/app/src/main/assets/modelsdirectory (if that one doesn't exist, create it) - copy the
Dockerfilebelow to the current (whisper.cpp) directory - run
docker build -t android-app-builder . - run the following command (while in the
whisper.cppdirectory):docker run -v "$(pwd)":/app/ android-app-builder /app/examples/whisper.android/gradlew -p /app/examples/whisper.android/ assembleRelease - if the build is successful (which, as of the time of writing, seems to be the case), you can find your
apkfile underexamples/whisper.android/app/build/outputs/apk/release/app-release.apk
Now just copy the apk file to your Android device and install it (you'll probably need to check Install from unknown sources somewhere).
If you want to re-do the build with different settings/models/whatever, just re-run step 7 above.