Commit Graph

12 Commits

Author SHA1 Message Date
ciricc 2305a6142a feat: split context into stateful/stateless; add concurrency gate, added model context params, benchmarks, silence mode for the ggml 2025-09-20 15:56:48 +03:00
ciricc 8f9ad60fca refactor(go bindings): make ModelContext and StatefulContext public 2025-09-14 04:39:26 +03:00
ciricc b751ec1f55 fix(go bindings): unit tests and exported interfaces 2025-09-14 02:41:28 +03:00
ciricc 221e93a5d7 refactor(go bindings): fix backward compatibility for the interfaces 2025-09-14 02:31:10 +03:00
ciricc 01f5c6b708 refactor(go bindings): remove public method accessing unsafe whisper 2025-09-14 01:47:57 +03:00
ciricc 97e6ce2bc4 feat(go bindings): add VAD and Diarization parameters 2025-09-13 22:28:14 +03:00
ciricc ebbcf3f17f refactor(go bindings): make thread-safe and stateful context 2025-09-13 20:47:13 +03:00
ciricc 59b3c4723c feat(go bindings): add state abstraction 2025-09-13 15:31:31 +03:00
polarmoon 5e94129cb2
go : NewContext now returns a clean context (#537)
Co-authored-by: Ming <ming@localhost>
2023-03-05 20:50:25 +02:00
David Thorpe f078a6f20e
go : adding features to the go-whisper example, go ci, etc (#384)
* Updated bindings so they can be used in third pary packages.

* Updated makefiles to set FMA flag on optionally, for xeon E5 on Darwin

* Added test script

* Changes for examples

* Reverted

* Made the NewContext method private
2023-01-07 21:21:43 +02:00
Mohit Agarwal 86a277f78d
go : run `go mod tidy` before building examples + fix permissions (#296)
* run `go mod tidy` before building examples

Running `make examples` after cloning the repository gives the following
error:

```
...
[100%] Built target whisper
gmake[3]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
gmake[2]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
gmake[1]: Leaving directory '/tmp/exp/whisper.cpp/bindings/go/build'
Build example go-model-download
Build example go-whisper
examples/go-whisper/process.go:11:2: missing go.sum entry for module providing package github.com/go-audio/wav (imported by github.com/ggerganov/whisper.cpp/bindings/go/examples/go-whisper); to add:
        go get github.com/ggerganov/whisper.cpp/bindings/go/examples/go-whisper
make: *** [Makefile:26: examples/go-whisper] Error 1
```

* remove executable bit from various files
2022-12-22 16:34:20 +02:00
David Thorpe 231bebca7d
bindings : initial import of golang bindings (#287)
* Initial import of golang bindings

* Updated makefile rules

* Updated bindings

* Makefile update to add in more tests
2022-12-20 08:54:33 +02:00