3 ms·
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_brid
by satvikpendem 2y ago
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.
- BrutalCoding 2y agoI 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 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-models 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.