if err != nil {
panic(err)
}
- if err := context.Process(samples, nil); err != nil {
+ if err := context.Process(samples, nil, nil); err != nil {
return err
}
And you can then test a model against samples with the following command:
```bash
-./build/go-whisper -model models/ggml-tiny.en.bin samples/jfk.wav
+./build/go-whisper -model models/ggml-tiny.en.bin samples/jfk.wav
```
## Using the bindings
// Process the data
fmt.Fprintf(flags.Output(), " ...processing %q\n", path)
context.ResetTimings()
- if err := context.Process(data, cb); err != nil {
+ if err := context.Process(data, cb, nil); err != nil {
return err
}