diff --git a/bindings/go/README.md b/bindings/go/README.md index 9d8320965..066131cf1 100644 --- a/bindings/go/README.md +++ b/bindings/go/README.md @@ -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. - diff --git a/bindings/go/examples/go-whisper/flags.go b/bindings/go/examples/go-whisper/flags.go index 766c92f18..bfd3b6793 100644 --- a/bindings/go/examples/go-whisper/flags.go +++ b/bindings/go/examples/go-whisper/flags.go @@ -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" ) /////////////////////////////////////////////////////////////////////////////// diff --git a/bindings/go/examples/go-whisper/main.go b/bindings/go/examples/go-whisper/main.go index 1bff7f5d5..53e1560b7 100644 --- a/bindings/go/examples/go-whisper/main.go +++ b/bindings/go/examples/go-whisper/main.go @@ -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() { diff --git a/bindings/go/examples/go-whisper/process.go b/bindings/go/examples/go-whisper/process.go index 833947e84..2a18c7030 100644 --- a/bindings/go/examples/go-whisper/process.go +++ b/bindings/go/examples/go-whisper/process.go @@ -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" ) diff --git a/bindings/go/go.mod b/bindings/go/go.mod index 7c92c7b48..33a556533 100644 --- a/bindings/go/go.mod +++ b/bindings/go/go.mod @@ -1,4 +1,4 @@ -module github.com/ggerganov/whisper.cpp/bindings/go +module github.com/ggml-org/whisper.cpp/bindings/go go 1.23 diff --git a/bindings/go/pkg/whisper/consts.go b/bindings/go/pkg/whisper/consts.go index 5c22dc13a..dfa48fc8f 100644 --- a/bindings/go/pkg/whisper/consts.go +++ b/bindings/go/pkg/whisper/consts.go @@ -4,7 +4,7 @@ import ( "errors" // Bindings - whisper "github.com/ggerganov/whisper.cpp/bindings/go" + whisper "github.com/ggml-org/whisper.cpp/bindings/go" ) /////////////////////////////////////////////////////////////////////////////// diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go index cb3d9eb8c..c3a679a44 100644 --- a/bindings/go/pkg/whisper/context.go +++ b/bindings/go/pkg/whisper/context.go @@ -8,7 +8,7 @@ import ( "time" // Bindings - whisper "github.com/ggerganov/whisper.cpp/bindings/go" + whisper "github.com/ggml-org/whisper.cpp/bindings/go" ) /////////////////////////////////////////////////////////////////////////////// diff --git a/bindings/go/pkg/whisper/context_test.go b/bindings/go/pkg/whisper/context_test.go index e98a4c2b8..201d7dbe5 100644 --- a/bindings/go/pkg/whisper/context_test.go +++ b/bindings/go/pkg/whisper/context_test.go @@ -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" ) diff --git a/bindings/go/pkg/whisper/model.go b/bindings/go/pkg/whisper/model.go index 68a150223..d6f46b122 100644 --- a/bindings/go/pkg/whisper/model.go +++ b/bindings/go/pkg/whisper/model.go @@ -6,7 +6,7 @@ import ( "runtime" // Bindings - whisper "github.com/ggerganov/whisper.cpp/bindings/go" + whisper "github.com/ggml-org/whisper.cpp/bindings/go" ) /////////////////////////////////////////////////////////////////////////////// diff --git a/bindings/go/pkg/whisper/model_test.go b/bindings/go/pkg/whisper/model_test.go index 8797f0d0f..58e22e94d 100644 --- a/bindings/go/pkg/whisper/model_test.go +++ b/bindings/go/pkg/whisper/model_test.go @@ -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) { diff --git a/bindings/go/whisper.go b/bindings/go/whisper.go index 3ef73414d..e1a74743c 100644 --- a/bindings/go/whisper.go +++ b/bindings/go/whisper.go @@ -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: // diff --git a/bindings/go/whisper_test.go b/bindings/go/whisper_test.go index 40648ffa8..5cfc76214 100644 --- a/bindings/go/whisper_test.go +++ b/bindings/go/whisper_test.go @@ -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" )