Wave Arts VQE  1.00
Voice Quality Enhancement
Classes | Enumerations | Functions
AecCal.h File Reference

AEC calibration functions. More...

Go to the source code of this file.

Classes

struct  AecSyncParam
 Synchronization parameters. More...
struct  CalParam
 Calibration parameters. More...
struct  CalResults
 Calibration results. More...

Enumerations

enum  AecSyncMethod { SYNC_METHOD_NONE = 0, SYNC_METHOD_UPSAMPLE, SYNC_METHOD_RESAMPLE }
 synchronization methods More...
enum  AecCalErr {
  CAL_OK = 0, CAL_NO_SIGNAL, CAL_DROPOUT, CAL_DEVICE,
  CAL_CLOCK, CAL_ERROR
}
 calibration errors More...

Functions

void CalGetDefaultParam (CalParam *p)
 Fill parameter structure with defaults.
void CalGenSin (float *buf, int n, float fs, float f0, float phi, float amp)
 Generate a sine tone.
float * CalGenSignal (CalParam *param, int *p_n)
 Generate test signal.
AecCalErr CalAnalyzeRec (float *buf, int n, CalParam *p, CalResults *r)
 Analyze recording and create CalResults.

Detailed Description

AEC calibration functions.

Calibration functions to determine sampling rate offset.


Enumeration Type Documentation

enum AecCalErr

calibration errors

Enumerator:
CAL_OK 

OK.

CAL_NO_SIGNAL 

signal level too low

CAL_DROPOUT 

signal appears to have dropouts, repeat increasing buffering

CAL_DEVICE 

can't open device

CAL_CLOCK 

too much clock deviation, repeat measurement

CAL_ERROR 

other error, perhaps there's too much noise?

synchronization methods

Enumerator:
SYNC_METHOD_NONE 

no synchronization

SYNC_METHOD_UPSAMPLE 

upsample device to high rate

SYNC_METHOD_RESAMPLE 

resample device input according to ratio


Function Documentation

float* CalGenSignal ( CalParam param,
int *  p_n 
)

Generate test signal.

Generate test signal.

This starts with some optional leading silence for noise floor estimation, and then a sine tone for sample rate offset estimation, and then some optional post silence to allow tone to fully record.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines