Skip to content

Latest commit

 

History

History
 
 

whisper.objc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

whisper.objc

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

Usage

git clone https://github.com/ggerganov/whisper.cpp
open whisper.cpp/examples/whisper.objc/whisper.objc.xcodeproj/

Make sure to build the project in Release:

image

Also, don't forget to add the -DGGML_USE_ACCELERATE compiler flag in Build Phases. This can significantly improve the performance of the transcription:

image

In this project, it also added -O3 -DNDEBUG to Other C Flags, but adding flags to app proj is not ideal in real world (applies to all C/C++ files), consider splitting xcodeproj in workspace in your own project.