Pure virtual analysis implementation - derived classes implement this.
355 {
356 try {
361 }
362
365
369 }
370
372
378 if (
cfg.keep_embeddings) {
380 }
383
385
397 }
398 }
#define MF_ERROR(comp, ctx,...)
void store_current_analysis(AnalysisResultType &&result) const
const Config & config() const
The stored config struct of type Config, or its defaults when none was set.
std::vector< float > process(std::span< const float > samples)
Run one utterance.
std::vector< float > hidden_states()
The state before the final layer for every frame of the latest utterance.
static std::tuple< NumericChannels, DataStructureInfo > extract_structured_double(T &compute_data)
Extract structured double data from Datum container or direct ComputeData with automatic container ha...
Datum< OutputType > output_type
static void describe_frames(PhonemeAnalysis &analysis)
static std::string diagnose(const PhonemeAnalyzerConfig &config)
Why a config cannot be analysed.
HubertPhonemeModel & network() const
static output_type empty_output()
Datum< InputType > input_type
output_type make_output(const PhonemeAnalysis &analysis, PhonemeMethod method, DataStructureInfo &structure_info)
static void bound_events(PhonemeAnalysis &analysis, size_t samples)
Gives every event its sample range.
Which phoneme is spoken near each frame of a mono 16 kHz utterance, from a learned network.