MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ phoneme_record_layout()

Kakshya::CompositeLayout MayaFlux::Yantra::phoneme_record_layout ( )
inlinenodiscard

Field layout of the records a PhonemeAnalyzer with Composite output gives, one record per recognised phoneme.

phoneme is the ARPABET symbol, class its class, frame the frame it was recognised on, sample the first sample of that frame, start and end the estimated sample range as in PhonemeEvent, probability what the network gave it on its frame, and vowel is 1 for a vowel and 0 otherwise.

Definition at line 144 of file PhonemeAnalyzer.hpp.

145{
147 layout.add_field<std::string>("phoneme");
148 layout.add_field<uint32_t>("class");
149 layout.add_field<uint64_t>("frame");
150 layout.add_field<uint64_t>("sample");
151 layout.add_field<uint64_t>("start");
152 layout.add_field<uint64_t>("end");
153 layout.add_field<double>("probability");
154 layout.add_field<uint8_t>("vowel");
155 return layout;
156}
bool add_field(std::string name)
Declare a named arithmetic, GLM, text, or binary field.
Definition Composite.hpp:74
Shared field description and byte layout for a CompositeArray.
Definition Composite.hpp:60

References MayaFlux::Kakshya::CompositeLayout::add_field().

Referenced by MayaFlux::Yantra::PhonemeAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::empty_output(), MayaFlux::Yantra::PhonemeAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::make_output(), and phoneme_extraction_layout().

Here is the call graph for this function:
Here is the caller graph for this function: