diff --git a/bindings/go/README.md b/bindings/go/README.md index 2b14c309..1968cfd2 100644 --- a/bindings/go/README.md +++ b/bindings/go/README.md @@ -31,7 +31,7 @@ func main() { if err != nil { panic(err) } - if err := context.Process(samples, nil); err != nil { + if err := context.Process(samples, nil, nil); err != nil { return err } @@ -71,7 +71,7 @@ The examples are placed in the `build` directory. Once built, you can download a 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 diff --git a/bindings/go/examples/go-whisper/process.go b/bindings/go/examples/go-whisper/process.go index d25fcd14..71e52f01 100644 --- a/bindings/go/examples/go-whisper/process.go +++ b/bindings/go/examples/go-whisper/process.go @@ -67,7 +67,7 @@ func Process(model whisper.Model, path string, flags *Flags) error { // 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 }