Sound Open Firmware
Loading...
Searching...
No Matches
mfcc_state Struct Reference

#include <mfcc_comp.h>

Collaboration diagram for mfcc_state:

Data Fields

struct mfcc_buffer buf
 Circular buffer for input data.
struct mfcc_pre_emph emph
 Pre-emphasis filter.
struct mfcc_fft fft
 FFT related.
struct dct_plan_16 dct
 DCT related.
struct psy_mel_filterbank melfb
 Mel filter bank.
struct mfcc_cepstral_lifter lifter
 Cepstral lifter coefficients.
struct mat_matrix_16b * mel_spectra
 Pointer to scratch.
struct mat_matrix_16b * cepstral_coef
 Pointer to scratch.
int32_t * power_spectra
 Pointer to scratch.
int32_t * mel_log_32
 Pointer to scratch for 32-bit Mel output Q9.23.
int32_t mmax
 Maximum Mel value in Q9.23.
int16_t buf_avail
int16_t * buffers
int16_t * prev_data
 prev_data_size
int16_t * window
 fft_size
int16_t * triangles
int source_channel
int buffer_size
int prev_data_size
int low_freq
int high_freq
int sample_rate
bool mel_only
 When true, output Mel spectra instead of cepstral coefficients.
bool waiting_fill
 booleans
bool prev_samples_valid
bool header_pending
 True when data header not yet written for current output.
struct mfcc_data_header header
 Data header for current output frame.
size_t sample_buffers_size
 bytes
int32_t * out_data_ptr
 Read pointer into staging data for multi-period output.
int out_remain
 Remaining int32_t samples to write to sink from staging.
int32_t * out_stage
 Dedicated staging buffer for pending output, decoupled from STFT scratch.
int out_stage_size
 Capacity of out_stage in int32_t samples.
uint32_t hop_count
 FFT hop counter, increments every processed hop.
int vad_silence_count
 Consecutive VAD=0 hops since last speech.
int16_t dtx_trailing_silence
 Number of trailing silence hops to send, from config.
int16_t dtx_silence_interval
 Send silence frame every Nth hop, 0 = disable.
int dtx_silence_counter
 Counter for periodic silence frame send.

Field Documentation

◆ buf

struct mfcc_buffer mfcc_state::buf

Circular buffer for input data.

◆ buf_avail

int16_t mfcc_state::buf_avail

◆ buffer_size

int mfcc_state::buffer_size

◆ buffers

int16_t* mfcc_state::buffers

◆ cepstral_coef

struct mat_matrix_16b* mfcc_state::cepstral_coef

Pointer to scratch.

◆ dct

struct dct_plan_16 mfcc_state::dct

DCT related.

◆ dtx_silence_counter

int mfcc_state::dtx_silence_counter

Counter for periodic silence frame send.

◆ dtx_silence_interval

int16_t mfcc_state::dtx_silence_interval

Send silence frame every Nth hop, 0 = disable.

◆ dtx_trailing_silence

int16_t mfcc_state::dtx_trailing_silence

Number of trailing silence hops to send, from config.

◆ emph

struct mfcc_pre_emph mfcc_state::emph

Pre-emphasis filter.

◆ fft

struct mfcc_fft mfcc_state::fft

FFT related.

◆ header

struct mfcc_data_header mfcc_state::header

Data header for current output frame.

◆ header_pending

bool mfcc_state::header_pending

True when data header not yet written for current output.

◆ high_freq

int mfcc_state::high_freq

◆ hop_count

uint32_t mfcc_state::hop_count

FFT hop counter, increments every processed hop.

◆ lifter

struct mfcc_cepstral_lifter mfcc_state::lifter

Cepstral lifter coefficients.

◆ low_freq

int mfcc_state::low_freq

◆ mel_log_32

int32_t* mfcc_state::mel_log_32

Pointer to scratch for 32-bit Mel output Q9.23.

◆ mel_only

bool mfcc_state::mel_only

When true, output Mel spectra instead of cepstral coefficients.

◆ mel_spectra

struct mat_matrix_16b* mfcc_state::mel_spectra

Pointer to scratch.

◆ melfb

struct psy_mel_filterbank mfcc_state::melfb

Mel filter bank.

◆ mmax

int32_t mfcc_state::mmax

Maximum Mel value in Q9.23.

◆ out_data_ptr

int32_t* mfcc_state::out_data_ptr

Read pointer into staging data for multi-period output.

◆ out_remain

int mfcc_state::out_remain

Remaining int32_t samples to write to sink from staging.

◆ out_stage

int32_t* mfcc_state::out_stage

Dedicated staging buffer for pending output, decoupled from STFT scratch.

◆ out_stage_size

int mfcc_state::out_stage_size

Capacity of out_stage in int32_t samples.

◆ power_spectra

int32_t* mfcc_state::power_spectra

Pointer to scratch.

◆ prev_data

int16_t* mfcc_state::prev_data

prev_data_size

◆ prev_data_size

int mfcc_state::prev_data_size

◆ prev_samples_valid

bool mfcc_state::prev_samples_valid

◆ sample_buffers_size

size_t mfcc_state::sample_buffers_size

bytes

◆ sample_rate

int mfcc_state::sample_rate

◆ source_channel

int mfcc_state::source_channel

◆ triangles

int16_t* mfcc_state::triangles

◆ vad_silence_count

int mfcc_state::vad_silence_count

Consecutive VAD=0 hops since last speech.

◆ waiting_fill

bool mfcc_state::waiting_fill

booleans

◆ window

int16_t* mfcc_state::window

fft_size


The documentation for this struct was generated from the following file:
  • /home/lrg/work/sof-dox-work/src/include/sof/audio/mfcc/mfcc_comp.h