Inverse text normalization API for other programming languages (#1019)
This commit is contained in:
67
.github/scripts/test-dart.sh
vendored
67
.github/scripts/test-dart.sh
vendored
@@ -4,6 +4,41 @@ set -ex
|
||||
|
||||
cd dart-api-examples
|
||||
|
||||
pushd non-streaming-asr
|
||||
|
||||
echo '----------paraformer itn----------'
|
||||
./run-paraformer-itn.sh
|
||||
|
||||
echo '----------paraformer----------'
|
||||
./run-paraformer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------VAD with paraformer----------'
|
||||
./run-vad-with-paraformer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------NeMo transducer----------'
|
||||
./run-nemo-transducer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------NeMo CTC----------'
|
||||
./run-nemo-ctc.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------TeleSpeech CTC----------'
|
||||
./run-telespeech-ctc.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------whisper----------'
|
||||
./run-whisper.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------zipformer transducer----------'
|
||||
./run-zipformer-transducer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
popd # non-streaming-asr
|
||||
|
||||
pushd tts
|
||||
|
||||
echo '----------piper tts----------'
|
||||
@@ -44,38 +79,6 @@ rm -rf sherpa-onnx-*
|
||||
|
||||
popd # streaming-asr
|
||||
|
||||
pushd non-streaming-asr
|
||||
|
||||
echo '----------VAD with paraformer----------'
|
||||
./run-vad-with-paraformer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------NeMo transducer----------'
|
||||
./run-nemo-transducer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------NeMo CTC----------'
|
||||
./run-nemo-ctc.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------TeleSpeech CTC----------'
|
||||
./run-telespeech-ctc.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------paraformer----------'
|
||||
./run-paraformer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------whisper----------'
|
||||
./run-whisper.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
echo '----------zipformer transducer----------'
|
||||
./run-zipformer-transducer.sh
|
||||
rm -rf sherpa-onnx-*
|
||||
|
||||
popd # non-streaming-asr
|
||||
|
||||
pushd vad
|
||||
./run.sh
|
||||
rm *.onnx
|
||||
|
||||
1
.github/scripts/test-dot-net.sh
vendored
1
.github/scripts/test-dot-net.sh
vendored
@@ -3,6 +3,7 @@
|
||||
cd dotnet-examples/
|
||||
|
||||
cd ./offline-decode-files
|
||||
./run-paraformer-itn.sh
|
||||
./run-telespeech-ctc.sh
|
||||
./run-nemo-ctc.sh
|
||||
./run-paraformer.sh
|
||||
|
||||
6
.github/scripts/test-nodejs-addon-npm.sh
vendored
6
.github/scripts/test-nodejs-addon-npm.sh
vendored
@@ -119,6 +119,12 @@ tar xvf sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2
|
||||
rm sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2
|
||||
|
||||
node ./test_asr_non_streaming_paraformer.js
|
||||
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/itn_zh_number.fst
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/itn-zh-number.wav
|
||||
|
||||
node ./test_asr_non_streaming_paraformer_itn.js
|
||||
|
||||
rm -rf sherpa-onnx-paraformer-zh-2023-03-28
|
||||
|
||||
echo "----------tts----------"
|
||||
|
||||
9
.github/scripts/test-nodejs-npm.sh
vendored
9
.github/scripts/test-nodejs-npm.sh
vendored
@@ -11,6 +11,15 @@ ls -lh node_modules
|
||||
|
||||
# offline asr
|
||||
|
||||
curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2
|
||||
ls -lh
|
||||
tar xvf sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2
|
||||
rm sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/itn-zh-number.wav
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/itn_zh_number.fst
|
||||
node ./test-offline-paraformer-itn.js
|
||||
rm -rf sherpa-onnx-paraformer-zh-2023-03-28
|
||||
|
||||
curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2
|
||||
ls -lh
|
||||
tar xvf sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2
|
||||
|
||||
2
.github/workflows/run-java-test.yaml
vendored
2
.github/workflows/run-java-test.yaml
vendored
@@ -190,6 +190,8 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
cd ./java-api-examples
|
||||
./run-inverse-text-normalization-paraformer.sh
|
||||
|
||||
./run-non-streaming-decode-file-paraformer.sh
|
||||
rm -rf sherpa-onnx-paraformer-zh-*
|
||||
|
||||
|
||||
59
.github/workflows/test-dot-net.yaml
vendored
59
.github/workflows/test-dot-net.yaml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
os: [ubuntu-latest]
|
||||
python-version: ["3.8"]
|
||||
|
||||
steps:
|
||||
@@ -72,45 +72,18 @@ jobs:
|
||||
|
||||
cmake --build . --target install --config Release
|
||||
|
||||
- name: Build sherpa-onnx for windows x86
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||
cmake --version
|
||||
|
||||
mkdir build-win32
|
||||
cd build-win32
|
||||
cmake \
|
||||
-A Win32 \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=./install \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSHERPA_ONNX_ENABLE_WEBSOCKET=OFF \
|
||||
-DBUILD_ESPEAK_NG_EXE=OFF \
|
||||
-DSHERPA_ONNX_ENABLE_BINARY=ON \
|
||||
..
|
||||
cmake --build . --target install --config Release
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.os }}
|
||||
path: ./build/install/lib/
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: matrix.os == 'windows-latest'
|
||||
with:
|
||||
name: ${{ matrix.os }}-win32
|
||||
path: ./build-win32/install/lib/
|
||||
|
||||
test-dot-net:
|
||||
runs-on: ${{ matrix.os }}
|
||||
needs: [build-libs]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest] #, windows-latest]
|
||||
os: [ubuntu-latest]
|
||||
python-version: ["3.8"]
|
||||
|
||||
steps:
|
||||
@@ -134,30 +107,11 @@ jobs:
|
||||
name: ubuntu-latest
|
||||
path: /tmp/linux
|
||||
|
||||
- name: Retrieve artifact from macos-latest
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: macos-latest
|
||||
path: /tmp/macos
|
||||
|
||||
- name: Retrieve artifact from windows-latest
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: windows-latest
|
||||
path: /tmp/windows-x64
|
||||
|
||||
- name: Retrieve artifact from windows-latest
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: windows-latest-win32
|
||||
path: /tmp/windows-x86
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: |
|
||||
6.0.x
|
||||
7.0.x
|
||||
|
||||
- name: Check dotnet
|
||||
run: dotnet --info
|
||||
@@ -171,15 +125,6 @@ jobs:
|
||||
echo "----------/tmp/linux----------"
|
||||
ls -lh /tmp/linux
|
||||
|
||||
echo "----------/tmp/macos----------"
|
||||
ls -lh /tmp/macos
|
||||
|
||||
echo "----------/tmp/windows-x64----------"
|
||||
ls -lh /tmp/windows-x64
|
||||
|
||||
echo "----------/tmp/windows-x86----------"
|
||||
ls -lh /tmp/windows-x86
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
3
.github/workflows/test-go.yaml
vendored
3
.github/workflows/test-go.yaml
vendored
@@ -127,7 +127,7 @@ jobs:
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tts-waves
|
||||
name: tts-waves-${{ matrix.os }}
|
||||
path: tts-waves
|
||||
|
||||
- name: Test non-streaming decoding files (macOS)
|
||||
@@ -154,6 +154,7 @@ jobs:
|
||||
|
||||
echo "Test paraformer"
|
||||
./run-paraformer.sh
|
||||
./run-paraformer-itn.sh
|
||||
rm -rf sherpa-onnx-paraformer-zh-2023-03-28
|
||||
|
||||
echo "Test NeMo CTC"
|
||||
|
||||
4
.github/workflows/test-nodejs-addon-api.yaml
vendored
4
.github/workflows/test-nodejs-addon-api.yaml
vendored
@@ -39,8 +39,8 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-11, macos-14, ubuntu-20.04, ubuntu-22.04] #, windows-latest]
|
||||
node-version: ["16", "17", "18", "19", "21", "22"]
|
||||
os: [macos-latest, ubuntu-latest, ubuntu-latest]
|
||||
node-version: ["16", "22"]
|
||||
python-version: ["3.8"]
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user