Skip to content

Commit b2e849f

Browse files
committed
add more asr apk models
1 parent d5a214c commit b2e849f

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

scripts/apk/generate-asr-apk-script.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,66 @@ def get_models():
300300
301301
ls -lh
302302
303+
popd
304+
""",
305+
),
306+
Model(
307+
model_name="sherpa-onnx-streaming-zipformer-ctc-zh-int8-2025-06-30",
308+
idx=17,
309+
lang="zh",
310+
short_name="large_zipformer_int8",
311+
rule_fsts="itn_zh_number.fst",
312+
cmd="""
313+
if [ ! -f itn_zh_number.fst ]; then
314+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/itn_zh_number.fst
315+
fi
316+
pushd $model_name
317+
rm -fv bpe.model
318+
319+
rm -rf test_wavs
320+
321+
ls -lh
322+
323+
popd
324+
""",
325+
),
326+
Model(
327+
model_name="sherpa-onnx-streaming-zipformer-ctc-zh-2025-06-30",
328+
idx=18,
329+
lang="zh",
330+
short_name="large_zipformer",
331+
rule_fsts="itn_zh_number.fst",
332+
cmd="""
333+
if [ ! -f itn_zh_number.fst ]; then
334+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/itn_zh_number.fst
335+
fi
336+
pushd $model_name
337+
rm -fv bpe.model
338+
339+
rm -rf test_wavs
340+
341+
ls -lh
342+
343+
popd
344+
""",
345+
),
346+
Model(
347+
model_name="sherpa-onnx-streaming-zipformer-ctc-fp16-zh-2025-06-30",
348+
idx=19,
349+
lang="zh",
350+
short_name="large_zipformer_fp16",
351+
rule_fsts="itn_zh_number.fst",
352+
cmd="""
353+
if [ ! -f itn_zh_number.fst ]; then
354+
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/itn_zh_number.fst
355+
fi
356+
pushd $model_name
357+
rm -fv bpe.model
358+
359+
rm -rf test_wavs
360+
361+
ls -lh
362+
303363
popd
304364
""",
305365
),

0 commit comments

Comments
 (0)