Skip to content

Commit c5b9b54

Browse files
authored
docs: Update README.md for whisper.objc app
1 parent 01d3bd7 commit c5b9b54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/whisper.objc/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ If you want to enable Core ML support, you can add the `-DWHISPER_USE_COREML -DW
3636

3737
Then follow the [`Core ML support` section of readme](../../README.md#core-ml-support) for convert the model.
3838

39+
After generating the model, I dragged it to the xcode project, and added it as a reference to the original file. Note: You also need to have the original (.bin model) model in the project as both are laoded.
40+
This works as is for using the default model - base.en. For using other models, you need to change the model name to the correct one in `ViewController.m` -
41+
```
42+
NSString *modelPath = [[NSBundle mainBundle] pathForResource:@"ggml-base.en" ofType:@"bin"];
43+
```
44+
3945
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.
4046

4147
## Metal

0 commit comments

Comments
 (0)