Fix ffmpeg c api example (#1185)
This commit is contained in:
18
.github/workflows/c-api.yaml
vendored
18
.github/workflows/c-api.yaml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user