coqui_stt_sys

Function STT_AddHotWord

Source
pub unsafe extern "C" fn STT_AddHotWord(
    aCtx: *mut ModelState,
    word: *const c_char,
    boost: f32,
) -> c_int
Expand description

@brief Add a hot-word and its boost.

Words that don’t occur in the scorer (e.g. proper nouns) or strings that contain spaces won’t be taken into account.

@param aCtx The ModelState pointer for the model being changed. @param word The hot-word. @param boost The boost. Positive value increases and negative reduces chance of a word occuring in a transcription. Excessive positive boost might lead to splitting up of letters of the word following the hot-word.

@return Zero on success, non-zero on failure (invalid arguments).