sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
sherpa_onnx::cxx::ForcedAlignmentOptions Struct Reference

Options of a forced aligner. More...

#include <cxx-api.h>

Public Attributes

float beam = 10.0f
float retry_beam = 40.0f
float transition_scale = 1.0f
float self_loop_scale = 0.1f
float acoustic_scale = 0.1f

Detailed Description

Definition at line 858 of file cxx-api.h.

Member Data Documentation

◆ acoustic_scale

float sherpa_onnx::cxx::ForcedAlignmentOptions::acoustic_scale = 0.1f

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

Definition at line 887 of file cxx-api.h.

◆ beam

float sherpa_onnx::cxx::ForcedAlignmentOptions::beam = 10.0f

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 863 of file cxx-api.h.

◆ retry_beam

float sherpa_onnx::cxx::ForcedAlignmentOptions::retry_beam = 40.0f

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

Definition at line 869 of file cxx-api.h.

◆ self_loop_scale

float sherpa_onnx::cxx::ForcedAlignmentOptions::self_loop_scale = 0.1f

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 881 of file cxx-api.h.

◆ transition_scale

float sherpa_onnx::cxx::ForcedAlignmentOptions::transition_scale = 1.0f

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

Definition at line 875 of file cxx-api.h.


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