infer.sh 689 B

123456789101112131415161718192021
  1. # Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved.
  2. # MIT License (https://opensource.org/licenses/MIT)
  3. # method1, inference from model hub
  4. # for more input type, please ref to readme.md
  5. input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav"
  6. output_dir="./outputs/debug"
  7. model="damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
  8. model_revision="v2.0.4"
  9. device="cuda:0" # "cuda:0" for gpu0, "cuda:1" for gpu1, "cpu"
  10. python -m funasr.bin.inference \
  11. ++model=${model} \
  12. ++model_revision=${model_revision} \
  13. ++input="${input}" \
  14. ++output_dir="${output_dir}" \
  15. ++device="${device}" \