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

◆ diagnose()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Kakshya::CompositeArray>
std::string MayaFlux::Yantra::PhonemeExtractor< InputType, OutputType >::diagnose ( const PhonemeExtractorConfig & config)
inlinestaticnodiscard

Why a config cannot be extracted with.

Returns
The reason, empty when usable.

Definition at line 193 of file PhonemeExtractor.hpp.

194 {
195 if (config.gate.enabled && (!std::isfinite(config.gate.threshold) || config.gate.threshold <= 0.0 || config.gate.hop == 0)) {
196 return "gate threshold must be finite and greater than 0, and its hop greater than 0";
197 }
199 }
const Config & config() const
The stored config struct of type Config, or its defaults when none was set.
The phonemes of a whole mono 16 kHz recording, with the pauses between speech taken out.
static std::string diagnose(const SpeechSegmenterConfig &config)
Why a config cannot be segmented with.
SpeechSegmenterConfig speech_segmenter_config(const PhonemeExtractorConfig &config)
The segmenter settings a PhonemeExtractorConfig implies.

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

Here is the caller graph for this function: