Skip to content

Commit

Permalink
whisper : update example in whisper.h (#1529)
Browse files Browse the repository at this point in the history
update the example in the header, previous examples deprecated.
  • Loading branch information
M-Ali-ML authored Nov 20, 2023
1 parent a01b2e0 commit fa19bc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion whisper.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ extern "C" {
//
// ...
//
// struct whisper_context * ctx = whisper_init_from_file("/path/to/ggml-base.en.bin");
// whisper_context_params cparams = whisper_context_default_params();
//
// struct whisper_context * ctx = whisper_init_from_file_with_params("/path/to/ggml-base.en.bin", cparams);
//
// if (whisper_full(ctx, wparams, pcmf32.data(), pcmf32.size()) != 0) {
// fprintf(stderr, "failed to process audio\n");
Expand Down

0 comments on commit fa19bc4

Please sign in to comment.