@@ -340,10 +340,11 @@ typedef struct SherpaOnnxOnlineRecognizerConfig {
340340 /** Streaming model configuration. */
341341 SherpaOnnxOnlineModelConfig model_config ;
342342
343- /** Decoding method, for example "greedy_search" or "modified_beam_search". */
343+ /** Decoding method: "greedy_search", "modified_beam_search" (transducer),
344+ * or "prefix_beam_search" (CTC). */
344345 const char * decoding_method ;
345346
346- /** Number of active paths for modified beam search . */
347+ /** Number of active paths for modified_beam_search / prefix_beam_search . */
347348 int32_t max_active_paths ;
348349
349350 /** Set to non-zero to enable endpoint detection. */
@@ -358,7 +359,8 @@ typedef struct SherpaOnnxOnlineRecognizerConfig {
358359 /** Endpoint rule 3 utterance-length threshold in seconds. */
359360 float rule3_min_utterance_length ;
360361
361- /** Path to a hotwords file. */
362+ /** Path to a hotwords file. Used with modified_beam_search or
363+ * prefix_beam_search. */
362364 const char * hotwords_file ;
363365
364366 /** Bonus score added to each hotword token during decoding. */
@@ -1160,12 +1162,14 @@ typedef struct SherpaOnnxOfflineRecognizerConfig {
11601162 /** Optional language model configuration. */
11611163 SherpaOnnxOfflineLMConfig lm_config ;
11621164
1163- /** Decoding method, for example "greedy_search" or "modified_beam_search". */
1165+ /** Decoding method: "greedy_search", "modified_beam_search" (transducer),
1166+ * or "prefix_beam_search" (CTC). */
11641167 const char * decoding_method ;
1165- /** Number of active paths for modified beam search . */
1168+ /** Number of active paths for modified_beam_search / prefix_beam_search . */
11661169 int32_t max_active_paths ;
11671170
1168- /** Path to a hotwords file. */
1171+ /** Path to a hotwords file. Used with modified_beam_search or
1172+ * prefix_beam_search. */
11691173 const char * hotwords_file ;
11701174
11711175 /** Bonus score added to each hotword token. */
0 commit comments