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

◆ find_voiced()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Kakshya::CompositeArray>
std::vector< std::pair< size_t, size_t > > MayaFlux::Yantra::PhonemeExtractor< InputType, OutputType >::find_voiced ( std::span< const double > samples,
const PhonemeExtractorConfig & cfg )
inlineprivate

Definition at line 290 of file PhonemeExtractor.hpp.

291 {
292 if (!m_waveform || m_waveform_hop != cfg.gate.hop) {
293 m_waveform.emplace(voicing_analyzer_config(cfg.sample_rate, cfg.gate.hop));
294 m_waveform_hop = cfg.gate.hop;
295 }
296 return voiced_intervals(*m_waveform, samples, cfg.gate.threshold, cfg.gate.hop);
297 }
std::optional< StandardWaveformAnalyzer > m_waveform
The phonemes of a whole mono 16 kHz recording, with the pauses between speech taken out.
std::vector< std::pair< size_t, size_t > > voiced_intervals(StandardWaveformAnalyzer &analyzer, std::span< const double > samples, double threshold, uint32_t hop)
The stretches of a recording where the waveform is voiced.
WaveformAnalyzerConfig voicing_analyzer_config(double sample_rate, uint32_t hop=256)
The waveform analyzer settings the voicing measure uses at the given rate and hop.

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

Here is the caller graph for this function: