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:
1
scripts/go/_internal/real-time-speech-recognition-from-microphone/.gitignore
vendored
Normal file
1
scripts/go/_internal/real-time-speech-recognition-from-microphone/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
real-time-speech-recognition-from-microphone
|
||||
@@ -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
|
||||
)
|
||||
@@ -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=
|
||||
@@ -0,0 +1 @@
|
||||
../../../../go-api-examples/real-time-speech-recognition-from-microphone/main.go
|
||||
@@ -0,0 +1 @@
|
||||
../../../../go-api-examples/real-time-speech-recognition-from-microphone/run.sh
|
||||
Reference in New Issue
Block a user