Skip to content

Commit

Permalink
add ci test for hotwords
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool committed Mar 7, 2024
1 parent d1edf53 commit fdebe22
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/scripts/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ for wave in ${waves[@]}; do
done
done

log "-----------------------------------------------------------------"
log "Run Zipformer transducer (Chinese, small model 14M) for hotwords "
log "-----------------------------------------------------------------"
log "Start testing ${repo_url} with hotwords"

time $EXE \
$repo/tokens.txt \
$repo/encoder_jit_trace-pnnx.ncnn.param \
$repo/encoder_jit_trace-pnnx.ncnn.bin \
$repo/decoder_jit_trace-pnnx.ncnn.param \
$repo/decoder_jit_trace-pnnx.ncnn.bin \
$repo/joiner_jit_trace-pnnx.ncnn.param \
$repo/joiner_jit_trace-pnnx.ncnn.bin \
$repo/test_wavs/1.wav \
2 \
modified_beam_search \
$repo/test_wavs/hotwords.txt

rm -rf $repo

log "------------------------------------------------------------"
Expand Down Expand Up @@ -588,4 +606,4 @@ time $EXE \
modified_beam_search \
$repo/hotwords.txt 1.6

rm -rf $repo
rm -rf $repo

0 comments on commit fdebe22

Please sign in to comment.