I use addHotWord
in java and have a error Could not insert hot-word
, this is my addHotWord:
model.addHotWord("cặc",.1f); model.feedAudioContent(streamContext, audioData, audioData.size) val decoded = model.intermediateDecode(streamContext)
why in API the function addHotWord is:
public void addHotWord(String word, float boost) { this.evaluateErrorCode(impl.AddHotWord(this._msp, word, boost)); }
This mean is an function always return on error is not?