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

The result of ForcedAligner::Compute(). More...

#include <cxx-api.h>

Collaboration diagram for sherpa_onnx::cxx::ForcedAlignmentResult:

Public Attributes

float duration = 0.0f
std::string textgrid
std::vector< ForcedAlignmentTier > tiers

Detailed Description

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

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

Member Data Documentation

◆ duration

float sherpa_onnx::cxx::ForcedAlignmentResult::duration = 0.0f

Duration of the aligned audio in seconds.

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

◆ textgrid

std::string sherpa_onnx::cxx::ForcedAlignmentResult::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 1011 of file cxx-api.h.

◆ tiers

std::vector<ForcedAlignmentTier> sherpa_onnx::cxx::ForcedAlignmentResult::tiers

The tiers of the alignment ("phones", "words"); empty for an empty result.

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


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