|
|
@ -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
|
|
|
|
* Darwin (OS X) 12.6 on x64_64
|
|
|
|
* Debian Linux on arm64
|
|
|
|
* Debian Linux on arm64
|
|
|
|
|
|
|
|
* Fedora Linux on x86_64
|
|
|
|
|
|
|
|
|
|
|
|
The "low level" bindings are in the `bindings/go` directory and there is a more
|
|
|
|
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
|
|
|
|
Go-style package in the `bindings/go/pkg/whisper` directory. The most simple usage
|
|
|
@ -30,7 +31,7 @@ func main() {
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if err := context.Process(samples); err != nil {
|
|
|
|
if err := context.Process(samples, nil); err != nil {
|
|
|
|
return err
|
|
|
|
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:
|
|
|
|
This will compile a static `libwhisper.a` in a `build` folder, download a model file, then run the tests. To build the examples:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/ggerganov/whisper.cpp.git
|
|
|
|
|
|
|
|
cd whisper.cpp/bindings/go
|
|
|
|
|
|
|
|
make examples
|
|
|
|
make examples
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|