Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.21 KB

README_en.md

File metadata and controls

47 lines (32 loc) · 2.21 KB

Android

简体中文 | English

Disclaimer, this document was obtained through machine translation, please check the original document here.

Convert model

  1. To start by cloning the Whisper native source code, as we need some of its files, run the following command from the root of the whisper-finetune project.
git clone https://github.com/openai/whisper.git
  1. To convert your models, run convert-ggml.py from the root of your Whisper-Finetune project to convert your models to ggml format for your Android project. The models you need to convert can be original Transformers. It can also be a fine-tuned model.
python convert-ggml.py --model_dir=models/whisper-tiny-finetune/ --whisper_dir=whisper/ --output_path=models/ggml-model.bin
  1. Put the model in the Android project app/SRC/main/assets/models directory, and then you can use the Android open Studio project.

Build notes

  1. The default NDK version used is 25.2.9519653, if you change the other version below, you will need to change the configuration in app/build.gradle.
  2. Note that in real use, be sure to release the release APK package so that inference is fast.
  3. This project has released the release APK package, please scan the code at the end of the Whisker-finetune project homepage to download it.

Effect picture

The effect picture is as follows. The model used here is quantized as a half-precision tiny model, which has a low accuracy.

Android效果图 Android效果图 Android效果图 Android效果图

Download APK

Can click here to download the Android APK, note that in order to install package is small, quantitative model used here for half a tiny model precision and accuracy is not high, if you want to change model, please compile the project execution.


Android安装包