Pure virtual analysis implementation - derived classes implement this.
259 {
260 try {
265 }
266
269
273 }
274
276
281 if (
cfg.flush_tail) {
284 }
286
288 for (
size_t i = 0;
i <
analysis.probabilities.size(); ++
i) {
291 }
293
295
298
310 }
311 }
#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.
output_type convert_result(std::vector< std::vector< double > > &result_data, DataStructureInfo &metadata)
Convert processed double data back to OutputType using metadata and optional callback.
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...
void keep_hidden(bool keep)
Keep the recurrent output of every chunk process and flush run, for take_hidden.
std::vector< float > flush()
Run the partial chunk, padded with zeros to a whole one.
std::vector< float > process(std::span< const float > samples)
Append samples and run every chunk they complete.
std::vector< float > take_hidden()
The recurrent output kept since the last call, hidden_width values per chunk, chunk after chunk.
Datum< OutputType > output_type
Datum< InputType > input_type
SileroVadModel & network() const
static std::string diagnose(const VadAnalyzerConfig &config)
Why a config cannot be analysed.
Whether each 32 ms chunk of a mono 16 kHz stream is voice activity, from a learned network.