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

The result of SherpaOnnxForcedAlignerCompute(). More...

#include <c-api.h>

Collaboration diagram for SherpaOnnxForcedAlignmentResult:

Public Attributes

float duration
const char * textgrid
int32_t num_tiers
const SherpaOnnxForcedAlignmentTier * tiers

Detailed Description

tiers[0].name == "phones", tiers[1].name == "words".

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

Member Data Documentation

◆ duration

float SherpaOnnxForcedAlignmentResult::duration

Duration of the aligned audio in seconds.

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

◆ num_tiers

int32_t SherpaOnnxForcedAlignmentResult::num_tiers

Number of tiers in the result; 0 for an empty result.

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

◆ textgrid

const char* SherpaOnnxForcedAlignmentResult::textgrid

The whole alignment as a Praat TextGrid string; save it to a .TextGrid file and open it with Praat (https://www.fon.hum.uva.nl/praat/) to visualize the phone and word boundaries.

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

◆ tiers

const SherpaOnnxForcedAlignmentTier* SherpaOnnxForcedAlignmentResult::tiers

The tiers of the alignment ("phones", "words").

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


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