Test go inside sherpa-onnx (#374)

Previously, we only test the go api examples with pre-built packages. 
This PR tests go API examples against the latest source code of sherpa-onnx.
This commit is contained in:
Fangjun Kuang
2023-10-20 10:43:30 +08:00
committed by GitHub
parent ea7c45b60c
commit fe0c8bfc51
26 changed files with 255 additions and 12 deletions

View File

@@ -0,0 +1 @@
real-time-speech-recognition-from-microphone

View File

@@ -0,0 +1,11 @@
module real-time-speech-recognition-from-microphone
go 1.12
replace github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx => ../
require (
github.com/gordonklaus/portaudio v0.0.0-20230709114228-aafa478834f5
github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx v0.0.0-00010101000000-000000000000
github.com/spf13/pflag v1.0.5
)

View File

@@ -0,0 +1,4 @@
github.com/gordonklaus/portaudio v0.0.0-20230709114228-aafa478834f5 h1:5AlozfqaVjGYGhms2OsdUyfdJME76E6rx5MdGpjzZpc=
github.com/gordonklaus/portaudio v0.0.0-20230709114228-aafa478834f5/go.mod h1:WY8R6YKlI2ZI3UyzFk7P6yGSuS+hFwNtEzrexRyD7Es=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=

View File

@@ -0,0 +1 @@
../../../../go-api-examples/real-time-speech-recognition-from-microphone/main.go

View File

@@ -0,0 +1 @@
../../../../go-api-examples/real-time-speech-recognition-from-microphone/run.sh