First of all, thank you for building such a cool library.
I'm using the C++ API to load streaming Zipformer models with SherpaOnnxCreateOnlineRecognizer, using hotwords_file to bias the decoding. In my use case, there are different situations in which we're expecting different utterances, but changing the hotwords appears to require reloading the model (which is obviously)
Is there a way to change the hotwords for an already created recognizer? If not, then I could try to help implement it if you had some pointers on how to do it.
First of all, thank you for building such a cool library.
I'm using the C++ API to load streaming Zipformer models with
SherpaOnnxCreateOnlineRecognizer
, usinghotwords_file
to bias the decoding. In my use case, there are different situations in which we're expecting different utterances, but changing the hotwords appears to require reloading the model (which is obviously)Is there a way to change the hotwords for an already created recognizer? If not, then I could try to help implement it if you had some pointers on how to do it.
Thanks a lot!