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

◆ diagnose()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::MatrixXd>
std::string MayaFlux::Yantra::PhonemeAnalyzer< InputType, OutputType >::diagnose ( const PhonemeAnalyzerConfig & config)
inlinestaticnodiscard

Why a config cannot be analysed.

Returns
The reason, empty when the config is usable: its sample_rate is the 16000 Hz the network runs at.

Definition at line 268 of file PhonemeAnalyzer.hpp.

269 {
270 if (config.sample_rate != static_cast<double>(HubertPhonemeModel::sample_rate)) {
271 return std::format("sample_rate {} is not the {} Hz the network runs at; convert the input first, for example with Kinesis::Discrete::resample",
273 }
274 return {};
275 }
const Config & config() const
The stored config struct of type Config, or its defaults when none was set.
Which phoneme is spoken near each frame of a mono 16 kHz utterance, from a learned network.

Referenced by MayaFlux::Yantra::PhonemeAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::analyze_implementation().

Here is the caller graph for this function: