Fix ffmpeg c api example (#1185)

This commit is contained in:
Fangjun Kuang
2024-07-29 14:27:55 +08:00
committed by GitHub
parent 646f99c870
commit b1711ecaa1
4 changed files with 30 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ on:
- 'sherpa-onnx/csrc/*'
- 'sherpa-onnx/c-api/*'
- 'c-api-examples/**'
- 'ffmpeg-examples/**'
pull_request:
branches:
- master
@@ -23,6 +24,7 @@ on:
- 'sherpa-onnx/csrc/*'
- 'sherpa-onnx/c-api/*'
- 'c-api-examples/**'
- 'ffmpeg-examples/**'
workflow_dispatch:
@@ -81,6 +83,22 @@ jobs:
otool -L ./install/lib/libsherpa-onnx-c-api.dylib
fi
- name: Test ffmpeg
if: matrix.os == 'macos-latest'
shell: bash
run: |
brew install ffmpeg
cd ffmpeg-examples
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2
tar xvf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2
rm sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2
make
ls -lh
./run.sh
rm -rf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20
- name: Test sense-voice
shell: bash
run: |