Add Golang API for VAD (#708)

This commit is contained in:
Fangjun Kuang
2024-03-27 12:09:39 +08:00
committed by GitHub
parent ccb2d435ec
commit 69c7880c4d
28 changed files with 674 additions and 4 deletions

View File

@@ -1 +1,2 @@
!*.sh
go.sum

View File

@@ -0,0 +1 @@
vad-asr-paraformer

View File

@@ -0,0 +1,10 @@
module vad-asr-paraformer
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
)

View File

@@ -0,0 +1 @@
../../../../go-api-examples/vad-asr-paraformer/main.go

View File

@@ -0,0 +1 @@
../../../../go-api-examples/vad-asr-paraformer/run.sh

View File

@@ -0,0 +1,2 @@
vad-asr-whisper

View File

@@ -0,0 +1,5 @@
module vad-asr-whisper
go 1.12
replace github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx => ../

View File

@@ -0,0 +1 @@
../../../../go-api-examples/vad-asr-whisper/main.go

View File

@@ -0,0 +1 @@
../../../../go-api-examples/vad-asr-whisper/run.sh

2
scripts/go/_internal/vad/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
vad
go.sum

View File

@@ -0,0 +1,5 @@
module vad
go 1.12
replace github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx => ../

View File

@@ -0,0 +1 @@
../../../../go-api-examples/vad/main.go

View File

@@ -0,0 +1 @@
../../../../go-api-examples/vad/run.sh