简体中文 | English
Disclaimer, this document was obtained through machine translation, please check the original document here.
The program was translated using Whisper, and the source code can be found in the previous project. The model format is GGML, which is the same as the Android deployment, so you'll need to convert the model format before you can use it.
- 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
- To convert your models, run
convert-ggml.py
from the root of yourWhisper-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/whisper-tiny-finetune-ggml.bin
效果图如下: