Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go RPI5 release #354

Merged
merged 4 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/go-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: 1.21

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: 1.21

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: 1.21

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', '1.21', 'stable' ]


steps:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', 'stable' ]
go: [ '1.16', '1.17', '1.18', '1.19', '1.20', '1.21', 'stable' ]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions binding/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Leopard is an on-device speech-to-text engine. Leopard is:
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (4, 3) and NVIDIA Jetson Nano
- Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano

## Compatibility

- go 1.16+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (5, 4, 3), and NVIDIA Jetson Nano.
- **Windows**: The Go binding requires `cgo`, which means that you need to install a gcc compiler like [Mingw](http://mingw-w64.org/) to build it properly.
- Go versions less than `1.20` requires `gcc` version `11` or lower.

Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions binding/go/leopard.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ func getLinuxDetails() (string, string) {
return "jetson", "cortex-a57" + archInfo
case "0xd08":
return "raspberry-pi", "cortex-a72" + archInfo
case "0xd0b":
return "raspberry-pi", "cortex-a76" + archInfo
default:
log.Fatalf("Unsupported CPU:\n%s", cpuPart)
return "", ""
Expand Down
2 changes: 1 addition & 1 deletion demo/go-grpc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module leopardgogrpc
go 1.18

require (
github.com/Picovoice/leopard/binding/go/v2 v2.0.1
github.com/Picovoice/leopard/binding/go/v2 v2.0.2
github.com/golang/protobuf v1.5.2
github.com/google/uuid v1.3.0
google.golang.org/grpc v1.53.0
Expand Down
2 changes: 2 additions & 0 deletions demo/go-grpc/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/Picovoice/leopard/binding/go/v2 v2.0.1 h1:XUjSAKS+MSCI5BT54Mkq6sxEIsIwe32Ou7LHWBxfksQ=
github.com/Picovoice/leopard/binding/go/v2 v2.0.1/go.mod h1:/rYUeRDH4xBgtwBe9D8BwHIauPJ+M7czqLfyeJQJu7c=
github.com/Picovoice/leopard/binding/go/v2 v2.0.2 h1:Knk/UV51oRuHTHd7MGtlZXwsFF5jxu6AqttB0jGMHxs=
github.com/Picovoice/leopard/binding/go/v2 v2.0.2/go.mod h1:/rYUeRDH4xBgtwBe9D8BwHIauPJ+M7czqLfyeJQJu7c=
github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8=
github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo=
github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE=
Expand Down
4 changes: 2 additions & 2 deletions demo/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module leoparddemo
go 1.16

require (
github.com/Picovoice/leopard/binding/go/v2 v2.0.1
github.com/Picovoice/pvrecorder/binding/go v1.2.1
github.com/Picovoice/leopard/binding/go/v2 v2.0.2
github.com/Picovoice/pvrecorder/binding/go v1.2.2
github.com/agnivade/levenshtein v1.1.1 // indirect
)
4 changes: 4 additions & 0 deletions demo/go/go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
github.com/Picovoice/leopard/binding/go/v2 v2.0.1 h1:XUjSAKS+MSCI5BT54Mkq6sxEIsIwe32Ou7LHWBxfksQ=
github.com/Picovoice/leopard/binding/go/v2 v2.0.1/go.mod h1:/rYUeRDH4xBgtwBe9D8BwHIauPJ+M7czqLfyeJQJu7c=
github.com/Picovoice/leopard/binding/go/v2 v2.0.2 h1:Knk/UV51oRuHTHd7MGtlZXwsFF5jxu6AqttB0jGMHxs=
github.com/Picovoice/leopard/binding/go/v2 v2.0.2/go.mod h1:/rYUeRDH4xBgtwBe9D8BwHIauPJ+M7czqLfyeJQJu7c=
github.com/Picovoice/pvrecorder/binding/go v1.2.1 h1:p99fkYMFbTS4g4WwbhSPkT9PHvlEoVYGaNoqxCITiEo=
github.com/Picovoice/pvrecorder/binding/go v1.2.1/go.mod h1:gQdvBAjoKmRxMFh8W9cVKWcqHsWvu+d13sCPVFm7dhg=
github.com/Picovoice/pvrecorder/binding/go v1.2.2 h1:UN0u60hVR+s8kYmVSITS4UbTihHzeNxlNkJKYoKaVbo=
github.com/Picovoice/pvrecorder/binding/go v1.2.2/go.mod h1:gQdvBAjoKmRxMFh8W9cVKWcqHsWvu+d13sCPVFm7dhg=
github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8=
github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo=
github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE=
Expand Down
Loading