Spaces:
Running
Running
M. A. Ali
commited on
whisper : update example in whisper.h (#1529)
Browse filesupdate the example in the header, previous examples deprecated.
whisper.h
CHANGED
|
@@ -50,7 +50,9 @@ extern "C" {
|
|
| 50 |
//
|
| 51 |
// ...
|
| 52 |
//
|
| 53 |
-
//
|
|
|
|
|
|
|
| 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");
|