sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
SherpaOnnxForcedAlignmentOptions Struct Reference

Options of a forced aligner. A stream can override any of them via its own option mechanism before the alignment is computed. More...

#include <c-api.h>

Public Attributes

float beam
float retry_beam
float transition_scale
float self_loop_scale
float acoustic_scale

Detailed Description

Definition at line 2968 of file c-api.h.

Member Data Documentation

◆ acoustic_scale

float SherpaOnnxForcedAlignmentOptions::acoustic_scale

Scaling factor for acoustic likelihoods. If set to 0, the default value 0.1 is used.

Definition at line 2997 of file c-api.h.

◆ beam

float SherpaOnnxForcedAlignmentOptions::beam

Decoding beam used by the alignment search. Larger is more accurate and slower. If set to 0, the default value 10 is used.

Definition at line 2973 of file c-api.h.

◆ retry_beam

float SherpaOnnxForcedAlignmentOptions::retry_beam

Decoding beam used to retry failed alignments. If set to 0, the default value 40 is used.

Definition at line 2979 of file c-api.h.

◆ self_loop_scale

float SherpaOnnxForcedAlignmentOptions::self_loop_scale

Scale of self-loop versus non-self-loop log probs relative to the acoustics. If set to 0, the default value 0.1 is used.

Definition at line 2991 of file c-api.h.

◆ transition_scale

float SherpaOnnxForcedAlignmentOptions::transition_scale

Transition-probability scale relative to the acoustics. If set to 0, the default value 1 is used.

Definition at line 2985 of file c-api.h.


The documentation for this struct was generated from the following file: