381 {
385 for (
const size_t row :
rows) {
387 columns[0].push_back(
static_cast<double>(
event.phoneme));
389 columns[2].push_back(
static_cast<double>(
event.sample));
392 columns[5].push_back(
static_cast<double>(
event.probability));
395 }
397 for (
size_t k = 0;
k <
rows.size(); ++
k) {
399 }
410 }
414 } else {
418 }
421 }
424 }
425 }
const Config & config() const
The stored config struct of type Config, or its defaults when none was set.
output_type convert_result(std::vector< std::vector< double > > &result_data, DataStructureInfo &metadata)
Convert processed double data back to OutputType using metadata and optional callback.
std::vector< double > slice_intervals(std::span< const double > data, const std::vector< std::pair< size_t, size_t > > &intervals)
Copy data from a set of half-open intervals into a flat vector.
std::vector< std::pair< size_t, size_t > > merge_intervals(const std::vector< std::pair< size_t, size_t > > &intervals)
Merge overlapping or adjacent half-open intervals.
Kakshya::CompositeLayout phoneme_extraction_layout()
Field layout of the records a PhonemeExtractor gives: the phoneme record layout with the speech inter...
static Region audio_span(uint64_t start_frame, uint64_t end_frame, uint32_t start_channel, uint32_t end_channel, const std::string &label="")
Create a Region representing a span in audio (frames and channels).