M. A. Ali commited on
Commit
5a48cf5
·
unverified ·
1 Parent(s): cd7b137

whisper : update example in whisper.h (#1529)

Browse files

update the example in the header, previous examples deprecated.

Files changed (1) hide show
  1. whisper.h +3 -1
whisper.h CHANGED
@@ -50,7 +50,9 @@ extern "C" {
50
  //
51
  // ...
52
  //
53
- // struct whisper_context * ctx = whisper_init_from_file("/path/to/ggml-base.en.bin");
 
 
54
  //
55
  // if (whisper_full(ctx, wparams, pcmf32.data(), pcmf32.size()) != 0) {
56
  // fprintf(stderr, "failed to process audio\n");
 
50
  //
51
  // ...
52
  //
53
+ // whisper_context_params cparams = whisper_context_default_params();
54
+ //
55
+ // struct whisper_context * ctx = whisper_init_from_file_with_params("/path/to/ggml-base.en.bin", cparams);
56
  //
57
  // if (whisper_full(ctx, wparams, pcmf32.data(), pcmf32.size()) != 0) {
58
  // fprintf(stderr, "failed to process audio\n");