Add C# API for spoken language identification (#697)

This commit is contained in:
Fangjun Kuang
2024-03-25 18:45:09 +08:00
committed by GitHub
parent 83a10a55a5
commit 305c373107
10 changed files with 265 additions and 55 deletions

View File

@@ -40,33 +40,10 @@ jobs:
- name: Check dotnet
run: dotnet --info
- name: Decode a file
- name: Run tests
shell: bash
run: |
cd dotnet-examples/
cd online-decode-files
./run-transducer.sh
./run-paraformer.sh
cd ../offline-decode-files
./run-nemo-ctc.sh
./run-paraformer.sh
./run-zipformer.sh
./run-hotwords.sh
./run-whisper.sh
./run-tdnn-yesno.sh
cd ../offline-tts
./run-aishell3.sh
./run-piper.sh
ls -lh
cd ../..
mkdir tts
cp dotnet-examples/offline-tts/*.wav ./tts
.github/scripts/test-dot-net.sh
- uses: actions/upload-artifact@v4
with:

View File

@@ -177,39 +177,16 @@ jobs:
cp -v scripts/dotnet/examples/offline-decode-files.csproj dotnet-examples/offline-decode-files/
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/
ls -lh /tmp
- name: Decode a file
- name: Run tests
shell: bash
run: |
cd dotnet-examples/
.github/scripts/test-dot-net.sh
cd online-decode-files
./run-zipformer2-ctc.sh
./run-transducer.sh
./run-paraformer.sh
cd ../offline-decode-files
./run-nemo-ctc.sh
./run-paraformer.sh
./run-zipformer.sh
./run-hotwords.sh
./run-whisper.sh
./run-tdnn-yesno.sh
cd ../offline-tts
./run-aishell3.sh
./run-piper.sh
ls -lh
cd ../..
mkdir tts
cp dotnet-examples/offline-tts/*.wav ./tts
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dot-net-tts-generated-test-files-${{ matrix.os }}
path: tts