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

Model loading #342

Closed Zeiny96 closed 1 year ago

Zeiny96 commented 1 year ago

Can we load TorchScript model from python instead of loading it inside the c++ code, I specifically talk about something like OfflineRecognizer which requires passing model path, but can we give it loaded model instead?

csukuangfj commented 1 year ago

Yes, it's doable but we haven't exposed the interface to python.

Zeiny96 commented 1 year ago

Okay, thanks for your concern.