diff --git a/bindings/go/Makefile b/bindings/go/Makefile index 01dba95..3374212 100755 --- a/bindings/go/Makefile +++ b/bindings/go/Makefile @@ -14,6 +14,7 @@ whisper: mkdir test: model-small whisper @go mod tidy @go test -v . + @go test -v ./pkg/whisper/... examples: $(EXAMPLES_DIR) diff --git a/bindings/go/README.md b/bindings/go/README.md index 91a0ab2..8ae89c7 100755 --- a/bindings/go/README.md +++ b/bindings/go/README.md @@ -4,6 +4,7 @@ This package provides Go bindings for whisper.cpp. They have been tested on: * Darwin (OS X) 12.6 on x64_64 * Debian Linux on arm64 + * Fedora Linux on x86_64 The "low level" bindings are in the `bindings/go` directory and there is a more Go-style package in the `bindings/go/pkg/whisper` directory. The most simple usage @@ -30,7 +31,7 @@ func main() { if err != nil { panic(err) } - if err := context.Process(samples); err != nil { + if err := context.Process(samples, nil); err != nil { return err } @@ -58,8 +59,6 @@ make test This will compile a static `libwhisper.a` in a `build` folder, download a model file, then run the tests. To build the examples: ```bash -git clone https://github.com/ggerganov/whisper.cpp.git -cd whisper.cpp/bindings/go make examples ```