#[repr(C)]pub struct SherpaOnnxOnlineRecognizerConfig {Show 16 fields
pub feat_config: SherpaOnnxFeatureConfig,
pub model_config: SherpaOnnxOnlineModelConfig,
pub decoding_method: *const c_char,
pub max_active_paths: i32,
pub enable_endpoint: i32,
pub rule1_min_trailing_silence: f32,
pub rule2_min_trailing_silence: f32,
pub rule3_min_utterance_length: f32,
pub hotwords_file: *const c_char,
pub hotwords_score: f32,
pub ctc_fst_decoder_config: SherpaOnnxOnlineCtcFstDecoderConfig,
pub rule_fsts: *const c_char,
pub rule_fars: *const c_char,
pub blank_penalty: f32,
pub hotwords_buf: *const c_char,
pub hotwords_buf_size: i32,
}
Fields§
§feat_config: SherpaOnnxFeatureConfig
§model_config: SherpaOnnxOnlineModelConfig
§decoding_method: *const c_char
Possible values are: greedy_search, modified_beam_search
max_active_paths: i32
Used only when decoding_method is modified_beam_search Example value: 4
enable_endpoint: i32
0 to disable endpoint detection. A non-zero value to enable endpoint detection.
rule1_min_trailing_silence: f32
An endpoint is detected if trailing silence in seconds is larger than this value even if nothing has been decoded. Used only when enable_endpoint is not 0.
rule2_min_trailing_silence: f32
An endpoint is detected if trailing silence in seconds is larger than this value after something that is not blank has been decoded. Used only when enable_endpoint is not 0.
rule3_min_utterance_length: f32
An endpoint is detected if the utterance in seconds is larger than this value. Used only when enable_endpoint is not 0.
hotwords_file: *const c_char
Path to the hotwords.
hotwords_score: f32
Bonus score for each token in hotwords.
ctc_fst_decoder_config: SherpaOnnxOnlineCtcFstDecoderConfig
§rule_fsts: *const c_char
§rule_fars: *const c_char
§blank_penalty: f32
§hotwords_buf: *const c_char
if non-nullptr, loading the hotwords from the buffered string directly in
hotwords_buf_size: i32
byte size excluding the tailing ‘\0’
Trait Implementations§
Source§impl Clone for SherpaOnnxOnlineRecognizerConfig
impl Clone for SherpaOnnxOnlineRecognizerConfig
Source§fn clone(&self) -> SherpaOnnxOnlineRecognizerConfig
fn clone(&self) -> SherpaOnnxOnlineRecognizerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more