zhifu gao
2024-03-11 a7d7a0f3a2e7cd44a337ced34e3536b12ccb534e
runtime/python/onnxruntime/funasr_onnx/vad_bin.py
@@ -61,8 +61,8 @@
                  "For the users in China, you could install with the command:\n" \
                  "\npip3 install -U funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple"
         
         model = AutoModel(model=cache_dir)
         model_dir = model.export(type="onnx", quantize=quantize, device="cpu")
         model = AutoModel(model=model_dir)
         model_dir = model.export(type="onnx", quantize=quantize)
      config_file = os.path.join(model_dir, 'vad.yaml')
      cmvn_file = os.path.join(model_dir, 'vad.mvn')
      config = read_yaml(config_file)
@@ -225,8 +225,8 @@
                  "For the users in China, you could install with the command:\n" \
                  "\npip3 install -U funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple"
         
         model = AutoModel(model=cache_dir)
         model_dir = model.export(type="onnx", quantize=quantize, device="cpu")
         model = AutoModel(model=model_dir)
         model_dir = model.export(type="onnx", quantize=quantize)
         
      config_file = os.path.join(model_dir, 'vad.yaml')
      cmvn_file = os.path.join(model_dir, 'vad.mvn')