Add C API for streaming HLG decoding (#734)
This commit is contained in:
5
.github/scripts/test-dot-net.sh
vendored
5
.github/scripts/test-dot-net.sh
vendored
@@ -2,7 +2,10 @@
|
||||
|
||||
cd dotnet-examples/
|
||||
|
||||
cd spoken-language-identification
|
||||
cd streaming-hlg-decoding/
|
||||
./run.sh
|
||||
|
||||
cd ../spoken-language-identification
|
||||
./run.sh
|
||||
|
||||
cd ../online-decode-files
|
||||
|
||||
7
.github/scripts/test-nodejs-npm.sh
vendored
7
.github/scripts/test-nodejs-npm.sh
vendored
@@ -58,6 +58,13 @@ rm sherpa-onnx-streaming-zipformer-ctc-multi-zh-hans-2023-12-13.tar.bz2
|
||||
node ./test-online-zipformer2-ctc.js
|
||||
rm -rf sherpa-onnx-streaming-zipformer-ctc-multi-zh-hans-2023-12-13
|
||||
|
||||
|
||||
curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18.tar.bz2
|
||||
tar xvf sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18.tar.bz2
|
||||
rm sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18.tar.bz2
|
||||
node ./test-online-zipformer2-ctc-hlg.js
|
||||
rm -rf sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18
|
||||
|
||||
# offline tts
|
||||
|
||||
curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-amy-low.tar.bz2
|
||||
|
||||
5
.github/scripts/test-swift.sh
vendored
5
.github/scripts/test-swift.sh
vendored
@@ -7,6 +7,10 @@ echo "pwd: $PWD"
|
||||
cd swift-api-examples
|
||||
ls -lh
|
||||
|
||||
./run-streaming-hlg-decode-file.sh
|
||||
rm ./streaming-hlg-decode-file
|
||||
rm -rf sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18
|
||||
|
||||
./run-spoken-language-identification.sh
|
||||
rm -rf sherpa-onnx-whisper*
|
||||
|
||||
@@ -31,4 +35,5 @@ sed -i.bak '20d' ./decode-file.swift
|
||||
|
||||
./run-decode-file-non-streaming.sh
|
||||
|
||||
|
||||
ls -lh
|
||||
|
||||
1
.github/workflows/test-dot-net.yaml
vendored
1
.github/workflows/test-dot-net.yaml
vendored
@@ -178,6 +178,7 @@ jobs:
|
||||
cp -v scripts/dotnet/examples/online-decode-files.csproj dotnet-examples/online-decode-files/
|
||||
cp -v scripts/dotnet/examples/speech-recognition-from-microphone.csproj dotnet-examples/speech-recognition-from-microphone/
|
||||
cp -v scripts/dotnet/examples/spoken-language-identification.csproj dotnet-examples/spoken-language-identification/
|
||||
cp -v scripts/dotnet/examples/streaming-hlg-decoding.csproj dotnet-examples/streaming-hlg-decoding
|
||||
|
||||
ls -lh /tmp
|
||||
|
||||
|
||||
67
.github/workflows/test-go-package.yaml
vendored
67
.github/workflows/test-go-package.yaml
vendored
@@ -66,12 +66,77 @@ jobs:
|
||||
run: |
|
||||
gcc --version
|
||||
|
||||
- name: Test speaker identification
|
||||
- name: Test streaming HLG decoding (Linux/macOS)
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cd go-api-examples/streaming-hlg-decoding/
|
||||
./run.sh
|
||||
|
||||
- name: Test speaker identification (Linux/macOS)
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cd go-api-examples/speaker-identification
|
||||
./run.sh
|
||||
|
||||
- name: Test speaker identification (Win64)
|
||||
if: matrix.os == 'windows-latest' && matrix.arch == 'x64'
|
||||
shell: bash
|
||||
run: |
|
||||
cd go-api-examples/speaker-identification
|
||||
go mod tidy
|
||||
cat go.mod
|
||||
go build
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-recongition-models/3dspeaker_speech_campplus_sv_zh-cn_16k-common.onnx
|
||||
git clone https://github.com/csukuangfj/sr-data
|
||||
ls -lh
|
||||
echo $PWD
|
||||
ls -lh /C/Users/runneradmin/go/pkg/mod/github.com/k2-fsa/
|
||||
ls -lh /C/Users/runneradmin/go/pkg/mod/github.com/k2-fsa/*
|
||||
cp -v /C/Users/runneradmin/go/pkg/mod/github.com/k2-fsa/sherpa-onnx-go-windows*/lib/x86_64-pc-windows-gnu/*.dll .
|
||||
ls -lh
|
||||
go mod tidy
|
||||
go build
|
||||
go run ./main.go
|
||||
|
||||
- name: Test speaker identification (Win32)
|
||||
if: matrix.os == 'windows-latest' && matrix.arch == 'x86'
|
||||
shell: bash
|
||||
run: |
|
||||
cd go-api-examples/speaker-identification
|
||||
go mod tidy
|
||||
cat go.mod
|
||||
ls -lh
|
||||
|
||||
go env GOARCH
|
||||
go env
|
||||
echo "------------------------------"
|
||||
go env -w GOARCH=386
|
||||
go env -w CGO_ENABLED=1
|
||||
go env
|
||||
|
||||
go clean
|
||||
go build
|
||||
|
||||
echo $PWD
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/speaker-recongition-models/3dspeaker_speech_campplus_sv_zh-cn_16k-common.onnx
|
||||
git clone https://github.com/csukuangfj/sr-data
|
||||
ls -lh
|
||||
echo $PWD
|
||||
ls -lh /C/Users/runneradmin/go/pkg/mod/github.com/k2-fsa/
|
||||
ls -lh /C/Users/runneradmin/go/pkg/mod/github.com/k2-fsa/*
|
||||
cp -v /C/Users/runneradmin/go/pkg/mod/github.com/k2-fsa/sherpa-onnx-go-windows*/lib/i686-pc-windows-gnu/*.dll .
|
||||
ls -lh
|
||||
go mod tidy
|
||||
go build
|
||||
go run ./main.go
|
||||
|
||||
rm -rf sr-data
|
||||
rm -rf *.onnx
|
||||
|
||||
- name: Test non-streaming TTS (Linux/macOS)
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
|
||||
6
.github/workflows/test-go.yaml
vendored
6
.github/workflows/test-go.yaml
vendored
@@ -74,6 +74,12 @@ jobs:
|
||||
go mod tidy
|
||||
go build
|
||||
|
||||
- name: Test streaming HLG decoding
|
||||
shell: bash
|
||||
run: |
|
||||
cd scripts/go/_internal/streaming-hlg-decoding/
|
||||
./run.sh
|
||||
|
||||
- name: Test speaker identification
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user