demo: Use Kroko ASR, show icon in tray - #42
Conversation
|
Thanks for sharing! This looks really interesting and actually what you are doing with Sherpa here could be really useful in LocalAI as well where the Kokoro backend is presently implemented with Python, so a Sherpa backend could be really nice. I've only had a brief look so far, but here are my thoughts on the topics this brings up in general.
As to having multiple API's and running models actually inside VoxInput;
|
|
Implemented in LocalAI |
|
I haven't touched this in a while, it's been working well for me. But seeing as you closed it, I figured a late reply is better than none. So, jumping in:
|
|
Since I added LocalVQE with Purego anyway it's not much of a big deal to add Sherpa and the LocalAI integration uses Purego as well with Sherpa as a point of reference. I'm tempted to suggest https://github.com/mudler/parakeet.cpp instead of Sherpa, but it's not the same thing and also they are not mutually exclusive. I don't like how Sherpa bundles the ONNX runtime and in general I think there is some supply chain risk with that project, so I'd like Sherpa behind a build tag, but otherwise it's fine. Env vars: I basically have launch scripts for different profiles that set the env vars and don't see much need for something different, but it could be nicer to have a composable config format built in so I'd consider it Resampling; I've never looked into it, this is just the naive implementation Claude spat out. Feel free to make a pr for that or perhaps I will because the upstream library looks interesting. |
|
I don't mind changing out the model. I think what I will do is wait for mudler/parakeet.cpp#10 for Nemotron 3.5 ASR 0.6b to be merged. It is larger than Kroko (756 MB for int8 quantization vs. 147 MB), but you do get 40 languages, and I don't mind the size. Per k2-fsa/sherpa-onnx#2918 the offline parakeet models are not really streaming capable. And then I'll do a hacking session and if all goes well I'll close this and try to make a more mergeable PR. I just hope latency with CPU is reasonable. |
I wanted to show you what I have in my fork, in case you have any ideas on project evolution. My thoughts are:
Also I went for a kind of minimalist approach with the GUI, just a tray icon that changes, I see you have gone in a different direction with the toaster notifications
