Skip to content

Commit 5f12b08

Browse files
authored
Fix download test wav files (#3004)
1 parent 8d28e72 commit 5f12b08

1 file changed

Lines changed: 47 additions & 8 deletions

File tree

.github/workflows/upload-models.yaml

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27+
- name: Install ffmpeg
28+
shell: bash
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y ffmpeg
32+
33+
- name: Verify ffmpeg
34+
shell: bash
35+
run: |
36+
ffmpeg -version
37+
2738
- name: git config
2839
shell: bash
2940
run: |
@@ -34,17 +45,24 @@ jobs:
3445
if: false
3546
uses: mxschmitt/action-tmate@v3
3647

37-
- name: Collect funasr-nano with LLM int8
48+
- name: Collect funasr-nano with LLM
3849
if: false
3950
shell: bash
4051
run: |
4152
git lfs install
42-
git clone https://huggingface.co/csukuangfj/sherpa-onnx-funasr-nano-int8-2025-12-30
43-
d=sherpa-onnx-funasr-nano-int8-2025-12-30
44-
rm -rf $d/.git
45-
tar cjfv $d.tar.bz2 $d
46-
ls -lh $d.tar.bz2
47-
ls -lh $d
53+
models=(
54+
sherpa-onnx-funasr-nano-int8-2025-12-30
55+
sherpa-onnx-funasr-nano-fp16-2025-12-30
56+
sherpa-onnx-funasr-nano-2025-12-30
57+
)
58+
for d in ${models[@]}; do
59+
git clone https://huggingface.co/csukuangfj/$d
60+
rm -rf $d/.git
61+
tar cjfv $d.tar.bz2 $d
62+
ls -lh $d.tar.bz2
63+
ls -lh $d
64+
rm -rf $d
65+
done
4866
4967
- name: Collect funasr-nano with LLM int8
5068
if: false
@@ -96,6 +114,13 @@ jobs:
96114
97115
mv yuenan.wav vietnamese.wav
98116
117+
for f in *.wav; do
118+
ffmpeg -y -loglevel error -i "$f" \
119+
-ac 1 -ar 16000 -sample_fmt s16 \
120+
"${f}.tmp.wav" \
121+
&& mv "${f}.tmp.wav" "$f"
122+
done
123+
99124
cat >README.md <<EOF
100125
Audio files in this directory are downloaded from
101126
https://github.com/FunAudioLLM/FunAudioLLM.github.io/tree/master/funasr/static/audios
@@ -196,6 +221,13 @@ jobs:
196221
197222
mv yuenan.wav vietnamese.wav
198223
224+
for f in *.wav; do
225+
ffmpeg -y -loglevel error -i "$f" \
226+
-ac 1 -ar 16000 -sample_fmt s16 \
227+
"${f}.tmp.wav" \
228+
&& mv "${f}.tmp.wav" "$f"
229+
done
230+
199231
cat >README.md <<EOF
200232
Audio files in this directory are downloaded from
201233
https://github.com/FunAudioLLM/FunAudioLLM.github.io/tree/master/funasr/static/audios
@@ -296,6 +328,13 @@ jobs:
296328
297329
mv yuenan.wav vietnamese.wav
298330
331+
for f in *.wav; do
332+
ffmpeg -y -loglevel error -i "$f" \
333+
-ac 1 -ar 16000 -sample_fmt s16 \
334+
"${f}.tmp.wav" \
335+
&& mv "${f}.tmp.wav" "$f"
336+
done
337+
299338
cat >README.md <<EOF
300339
Audio files in this directory are downloaded from
301340
https://github.com/FunAudioLLM/FunAudioLLM.github.io/tree/master/funasr/static/audios
@@ -762,7 +801,7 @@ jobs:
762801
mv models/* .
763802
764803
- name: Publish to huggingface
765-
if: true
804+
if: false
766805
env:
767806
HF_TOKEN: ${{ secrets.HF_TOKEN }}
768807
uses: nick-fields/retry@v3

0 commit comments

Comments
 (0)