miniDSP
A small C library for audio DSP
Loading...
Searching...
No Matches
MD_vad_state Struct Reference

Internal state for the VAD detector. More...

#include <minidsp.h>

Data Fields

MD_vad_params params
 Copy of caller params.
double feat_min [MD_VAD_NUM_FEATURES]
 EMA-tracked feature minimums.
double feat_max [MD_VAD_NUM_FEATURES]
 EMA-tracked feature maximums.
unsigned onset_counter
 Consecutive above-threshold count.
unsigned hangover_counter
 Remaining hangover frames.
int current_decision
 Current speech decision (0 or 1).
unsigned frames_processed
 Total frames seen.

Detailed Description

Internal state for the VAD detector.

Caller-owned, stack-allocatable. No heap allocations. Initialize with MD_vad_init() before use.

Definition at line 1819 of file minidsp.h.

Field Documentation

◆ current_decision

int MD_vad_state::current_decision

Current speech decision (0 or 1).

Definition at line 1825 of file minidsp.h.

◆ feat_max

double MD_vad_state::feat_max[MD_VAD_NUM_FEATURES]

EMA-tracked feature maximums.

Definition at line 1822 of file minidsp.h.

◆ feat_min

double MD_vad_state::feat_min[MD_VAD_NUM_FEATURES]

EMA-tracked feature minimums.

Definition at line 1821 of file minidsp.h.

◆ frames_processed

unsigned MD_vad_state::frames_processed

Total frames seen.

Definition at line 1826 of file minidsp.h.

◆ hangover_counter

unsigned MD_vad_state::hangover_counter

Remaining hangover frames.

Definition at line 1824 of file minidsp.h.

◆ onset_counter

unsigned MD_vad_state::onset_counter

Consecutive above-threshold count.

Definition at line 1823 of file minidsp.h.

◆ params

MD_vad_params MD_vad_state::params

Copy of caller params.

Definition at line 1820 of file minidsp.h.


The documentation for this struct was generated from the following file: