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

◆ selected_rows()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Kakshya::CompositeArray>
std::vector< size_t > MayaFlux::Yantra::PhonemeExtractor< InputType, OutputType >::selected_rows ( const PhonemeExtraction & record)
inlinestaticprivate

Definition at line 358 of file PhonemeExtractor.hpp.

359 {
360 const auto selection = static_cast<PhonemeSelection>(record.config.method);
362 for (size_t row = 0; row < record.events.size(); ++row) {
363 if (is_selected(record.events[row], selection)) {
364 rows.push_back(row);
365 }
366 }
367 return rows;
368 }
const Config & config() const
The stored config struct of type Config, or its defaults when none was set.
static bool is_selected(const PhonemeEvent &event, PhonemeSelection selection)
The phonemes of a whole mono 16 kHz recording, with the pauses between speech taken out.

Referenced by MayaFlux::Yantra::PhonemeExtractor< std::vector< Kakshya::DataVariant >, Kakshya::CompositeArray >::extract_implementation().

Here is the caller graph for this function: