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

◆ speech_segmenter_config()

SpeechSegmenterConfig MayaFlux::Yantra::speech_segmenter_config ( const PhonemeExtractorConfig & config)
inlinenodiscard

The segmenter settings a PhonemeExtractorConfig implies.

Runs are capped at HubertPhonemeModel::max_samples so that each speech interval fits one call of the phoneme network, and measures are off.

Definition at line 87 of file PhonemeExtractor.hpp.

88{
89 SpeechSegmenterConfig segmenter;
90 segmenter.sample_rate = config.sample_rate;
91 segmenter.speech = config.speech;
92 segmenter.speech.measure = false;
93 if (segmenter.speech.max_run == 0 || segmenter.speech.max_run > HubertPhonemeModel::max_samples) {
95 }
96 return segmenter;
97}
static constexpr size_t max_samples
Longest utterance one call accepts, 30 s.
double sample_rate
Sample rate in Hz of the input.
SpeechSettings speech
How speech is found.
double sample_rate
Sample rate in Hz of the input.
SpeechSettings speech
How speech is found and measured.
Settings of a SpeechSegmenter.
bool measure
Also measure the voiced fraction and pitch of each speech interval.
uint32_t max_run
Longest speech interval in samples, 0 for no cap.

References MayaFlux::Yantra::SpeechSettings::max_run, MayaFlux::Yantra::HubertPhonemeModel::max_samples, MayaFlux::Yantra::SpeechSettings::measure, MayaFlux::Yantra::PhonemeExtractorConfig::sample_rate, MayaFlux::Yantra::SpeechSegmenterConfig::sample_rate, MayaFlux::Yantra::PhonemeExtractorConfig::speech, and MayaFlux::Yantra::SpeechSegmenterConfig::speech.

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

Here is the caller graph for this function: