sherpa-onnx
sherpa-onnx copied to clipboard
python api在昇腾npu 310P3 运行错误:Unsupported string: ascend. Fallback to cpu
硬件: NPU : 4张卡的310P3 CPU架构信息: uname -a Linux messi 5.15.0-141-generic #151-Ubuntu SMP Sun May 18 21:36:08 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
运行环境:python3.11
使用的sherpa-onnx版本: "sherpa-onnx>=1.12.15", "sherpa-onnx-bin>=1.12.15"
使用的模型: sherpa-onnx-ascend-310P3-sense-voice-zh-en-ja-ko-yue-2024-07-17
问题代码片段(路径部分暂时使用文字描述,可以确认模型路径没有传递错误): def create_recognizer() -> sherpa_onnx.OfflineRecognizer: recognizer = sherpa_onnx.OfflineRecognizer.from_sense_voice( model="模型的路径", tokens="tokens路径", num_threads=asr_config.ASR_NUM_THREADS, use_itn=False, debug=False, hr_rule_fsts="", hr_lexicon="", provider="ascend", ) return recognizer
加载异常不支持的情况: /project/sherpa-onnx/csrc/provider.cc:StringToProvider:32 Unsupported string: ascend. Fallback to cpu
请问在310P3下运行使用,是哪里配置有问题,还是说代码有问题?