k2-fsa / sherpa

Speech-to-text server framework with next-gen Kaldi
https://k2-fsa.github.io/sherpa
Apache License 2.0
521 stars 105 forks source link

Inference-websocket in sherpa-onnx #344

Open AliDs2022 opened 1 year ago

AliDs2022 commented 1 year ago

Hello, thank you for your efforts. After learning the zipformer model and installing the sherpa-onnx package to activate the server, I encountered the following error. Can you help me?

AliDs2022 commented 1 year ago

Hello, thank you for your efforts. After learning the zipformer model and installing the sherpa-onnx package to activate the server, I encountered the following error. Can you help me?

Screenshot from 2023-03-14 18-19-47

jingzhaoou commented 1 year ago

This should be an issue with the ONNX model files you used. sherpa-onnx expects models to have certain metadata so that it knows how to use them. For encoder ONNX model files, it should have the model_type metadata. You can try some pretrained models and see if you have better luck.

csukuangfj commented 1 year ago

@AliDs2022 Sorry, I missed this issue.

Yes, @jingzhaoou is right. Please re-download the model.