go : update module path

This commit is contained in:
thde 2025-10-07 10:50:12 -04:00
parent c8223a8548
commit 601fac8e3d
12 changed files with 15 additions and 17 deletions

View File

@ -12,7 +12,7 @@ is as follows:
```go
import (
"github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper"
"github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper"
)
func main() {
@ -84,7 +84,7 @@ And you can then test a model against samples with the following command:
To use the bindings in your own software,
1. Import `github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper` (or `github.com/ggerganov/whisper.cpp/bindings/go` into your package;
1. Import `github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper` (or `github.com/ggml-org/whisper.cpp/bindings/go` into your package;
2. Compile `libwhisper.a` (you can use `make whisper` in the `bindings/go` directory);
3. Link your go binary against whisper by setting the environment variables `C_INCLUDE_PATH` and `LIBRARY_PATH`
to point to the `whisper.h` file directory and `libwhisper.a` file directory respectively.
@ -93,8 +93,8 @@ Look at the `Makefile` in the `bindings/go` directory for an example.
The API Documentation:
* https://pkg.go.dev/github.com/ggerganov/whisper.cpp/bindings/go
* https://pkg.go.dev/github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper
* https://pkg.go.dev/github.com/ggml-org/whisper.cpp/bindings/go
* https://pkg.go.dev/github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper
Getting help:
@ -103,4 +103,3 @@ Getting help:
## License
The license for the Go bindings is the same as the license for the rest of the whisper.cpp project, which is the MIT License. See the `LICENSE` file for more details.

View File

@ -7,7 +7,7 @@ import (
"time"
// Packages
whisper "github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper"
whisper "github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper"
)
///////////////////////////////////////////////////////////////////////////////

View File

@ -7,7 +7,7 @@ import (
"path/filepath"
// Packages
whisper "github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper"
whisper "github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper"
)
func main() {

View File

@ -7,7 +7,7 @@ import (
"time"
// Package imports
whisper "github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper"
whisper "github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper"
wav "github.com/go-audio/wav"
)

View File

@ -1,4 +1,4 @@
module github.com/ggerganov/whisper.cpp/bindings/go
module github.com/ggml-org/whisper.cpp/bindings/go
go 1.23

View File

@ -4,7 +4,7 @@ import (
"errors"
// Bindings
whisper "github.com/ggerganov/whisper.cpp/bindings/go"
whisper "github.com/ggml-org/whisper.cpp/bindings/go"
)
///////////////////////////////////////////////////////////////////////////////

View File

@ -8,7 +8,7 @@ import (
"time"
// Bindings
whisper "github.com/ggerganov/whisper.cpp/bindings/go"
whisper "github.com/ggml-org/whisper.cpp/bindings/go"
)
///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
"github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper"
"github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper"
"github.com/go-audio/wav"
assert "github.com/stretchr/testify/assert"
)

View File

@ -6,7 +6,7 @@ import (
"runtime"
// Bindings
whisper "github.com/ggerganov/whisper.cpp/bindings/go"
whisper "github.com/ggml-org/whisper.cpp/bindings/go"
)
///////////////////////////////////////////////////////////////////////////////

View File

@ -3,7 +3,7 @@ package whisper_test
import (
"testing"
"github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper"
"github.com/ggml-org/whisper.cpp/bindings/go/pkg/whisper"
assert "github.com/stretchr/testify/assert"
)
@ -14,7 +14,6 @@ func TestNew(t *testing.T) {
assert.NoError(err)
assert.NotNil(model)
defer model.Close()
})
t.Run("invalid model path", func(t *testing.T) {

View File

@ -341,7 +341,7 @@ func (ctx *Context) Whisper_full_parallel(params Params, samples []float32, proc
// Return the id of the autodetected language, returns -1 if not found
// Added to whisper.cpp in
// https://github.com/ggerganov/whisper.cpp/commit/a1c1583cc7cd8b75222857afc936f0638c5683d6
// https://github.com/ggml-org/whisper.cpp/commit/a1c1583cc7cd8b75222857afc936f0638c5683d6
//
// Examples:
//

View File

@ -7,7 +7,7 @@ import (
"time"
// Packages
whisper "github.com/ggerganov/whisper.cpp/bindings/go"
whisper "github.com/ggml-org/whisper.cpp/bindings/go"
wav "github.com/go-audio/wav"
assert "github.com/stretchr/testify/assert"
)