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

◆ recognise_phonemes()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Kakshya::CompositeArray>
void MayaFlux::Yantra::PhonemeExtractor< InputType, OutputType >::recognise_phonemes ( std::span< const double > samples,
PhonemeExtraction & record )
inlineprivate

Definition at line 325 of file PhonemeExtractor.hpp.

326 {
327 for (uint32_t index = 0; index < record.speech.size(); ++index) {
328 const auto [first, last] = record.speech[index];
330 continue;
331 }
332 const auto part = samples.subspan(first, last - first);
333 const auto analysis = m_phonemes.analyze_phonemes(
335 for (auto event : analysis.events) {
336 event.sample += first;
337 event.start += first;
338 event.end += first;
339 record.events.push_back(event);
340 record.segments.push_back(index);
341 }
342 }
343 }
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: