Makefile update to add in more tests

pull/287/head^2
David Thorpe 3 years ago
parent 41b223941d
commit b16e0c3fc5

@ -14,6 +14,7 @@ whisper: mkdir
test: model-small whisper
@go mod tidy
@go test -v .
@go test -v ./pkg/whisper/...
examples: $(EXAMPLES_DIR)

@ -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
```

Loading…
Cancel
Save