export telespeech ctc models to sherpa-onnx (#968)

This commit is contained in:
Fangjun Kuang
2024-06-04 12:10:39 +08:00
committed by GitHub
parent b31b9f3a2d
commit c6f22f25fa
6 changed files with 342 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
name: export-telespeech-ctc-to-onnx
on:
workflow_dispatch:
concurrency:
group: export-telespeech-ctc-to-onnx-${{ github.ref }}
cancel-in-progress: true
jobs:
export-telespeech-ctc-to-onnx:
if: github.repository_owner == 'k2-fsa' || github.repository_owner == 'csukuangfj'
name: telespeech
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
shell: bash
run: |
pip install onnx onnxruntime soundfile librosa numpy kaldi-native-fbank
- name: Run
shell: bash
run: |
cd scripts/tele-speech
./run.sh
./test.py
- name: Release
uses: svenstaro/upload-release-action@v2
with:
file_glob: true
file: ./*.tar.bz2
overwrite: true
repo_name: k2-fsa/sherpa-onnx
repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
tag: asr-models