Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update README.md for whisper.objc app #2569

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/whisper.objc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ If you want to enable Core ML support, you can add the `-DWHISPER_USE_COREML -DW

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

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.
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` -
```
NSString *modelPath = [[NSBundle mainBundle] pathForResource:@"ggml-base.en" ofType:@"bin"];
```

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.

## Metal
Expand Down