Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am one of the authors of sherpa-onnx. Can you describe why you feel it is complex? If you use Python, all you need is to run pip install sherpa-onnx, and then download a model and use the example code from the folder python-api-exmaples


Hi, I vouched your comment since it was dead, presumably because yours is a new account. I'm looking to use it in a Flutter app, possibly with flutter_rust_bridge FFI if needed, so I was wondering how to do that, as well as where to get the models and how to use them. I didn't see any end to end example in the docs.


I used FFI in the past (C header) but sherpa-onnx is available on pub.dev these days. Look for "sherpa_onnx".

You can also point sherpa_onnx in your pubspec.yaml file to a local dir (after cloning the repo somewhere on your file system) or point to a specific git commit hash, and don't forget to specify the path because its not the root of the repo. Here's a link to the dir of the flutter package https://github.com/k2-fsa/sherpa-onnx/tree/master/flutter.

The downloads of compatible models can be found at their GitHub Releases but tbh it's a bit of a strange setup IMO. Here's the page for TTS models for example: https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-model...

That same "release" (page) gets updated from time to time with new models. Use a bookmark :p

-

@csukuangfj, thanks for sharing the hard work. Nice to see you here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: