Minimal Obj-C application for automatic offline speech recognition. The inference runs locally, on-device.
whisper-iphone-13-mini-2.mp4
Real-time transcription demo:
whisper-iphone-13-mini-3.mp4
This example uses the whisper.xcframework which needs to be built first using the following command:
./build_xcframework.sh
A model is also required to be downloaded and can be done using the following command:
./models/download-ggml-model.sh base.en
If you don't want to convert a Core ML model, you can skip this step by creating dummy model:
mkdir models/ggml-base.en-encoder.mlmodelc
Follow the Core ML support
section of readme to convert the model.
That is all the needs to be done to use the Core ML model in the app. The converted model is a
resource in the project and will be used if it is available.