The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
gcfsnet_mono/denoise.c File Reference

Classes

struct  DenoiseState
 

Macros

#define FEAT_LEN   260
 
#define FFT_SIZE   128
 
#define FFT_HALF   65
 
#define NUM_CHAN   2
 
#define LEN_FILT_T   1
 
#define SQUARE(x)   ((x)*(x))
 
#define MAX(x, y)   ((x) > (y) ? (x) : (y))
 
#define NB_FEATURES   FEAT_LEN
 
#define TRAINING   0
 

Functions

int rnnoise_get_size ()
 
int rnnoise_init (DenoiseState *st)
 
DenoiseStaternnoise_create ()
 
void rnnoise_destroy (DenoiseState *st)
 
static void apply_filter_b (DenoiseState *st, const float *real_part, const float *imag_part)
 
static void apply_filter_t (DenoiseState *st, float *real_out, float *imag_out)
 
static void compute_frame_features (DenoiseState *st, const float *real_part, const float *imag_part)
 
void rnnoise_process_frame (DenoiseState *st, float *real_output, float *imag_output, const float *real_input, const float *imag_input)
 

Variables

const struct RNNModel rnnoise_model_orig
 

Macro Definition Documentation

◆ FEAT_LEN

#define FEAT_LEN   260

◆ FFT_SIZE

#define FFT_SIZE   128

◆ FFT_HALF

#define FFT_HALF   65

◆ NUM_CHAN

#define NUM_CHAN   2

◆ LEN_FILT_T

#define LEN_FILT_T   1

◆ SQUARE

#define SQUARE (   x)    ((x)*(x))

◆ MAX

#define MAX (   x,
 
)    ((x) > (y) ? (x) : (y))

◆ NB_FEATURES

#define NB_FEATURES   FEAT_LEN

◆ TRAINING

#define TRAINING   0

Function Documentation

◆ rnnoise_get_size()

int rnnoise_get_size ( )

◆ rnnoise_init()

int rnnoise_init ( DenoiseState st)

◆ rnnoise_create()

DenoiseState* rnnoise_create ( )

◆ rnnoise_destroy()

void rnnoise_destroy ( DenoiseState st)

◆ apply_filter_b()

static void apply_filter_b ( DenoiseState st,
const float *  real_part,
const float *  imag_part 
)
static

◆ apply_filter_t()

static void apply_filter_t ( DenoiseState st,
float *  real_out,
float *  imag_out 
)
static

◆ compute_frame_features()

static void compute_frame_features ( DenoiseState st,
const float *  real_part,
const float *  imag_part 
)
static

◆ rnnoise_process_frame()

void rnnoise_process_frame ( DenoiseState st,
float *  real_output,
float *  imag_output,
const float *  real_input,
const float *  imag_input 
)

Variable Documentation

◆ rnnoise_model_orig

const struct RNNModel rnnoise_model_orig
extern