infer.sh 466 B

1234567891011121314
  1. # download model
  2. local_path_root=./modelscope_models
  3. mkdir -p ${local_path_root}
  4. local_path=${local_path_root}/punc_ct-transformer_zh-cn-common-vocab272727-pytorch
  5. git clone https://www.modelscope.cn/damo/speech_paraformer-large-contextual_asr_nat-zh-cn-16k-common-vocab8404.git ${local_path}
  6. python funasr/bin/inference.py \
  7. +model="${local_path}" \
  8. +input="${local_path}/example/punc_example.txt" \
  9. +output_dir="./outputs/debug" \
  10. +device="cpu" \
  11. +debug="true"