#include <sent/stddefs.h>
#include <sent/mfcc.h>
Go to the source code of this file.
Functions | |
| static boolean | myread (void *buf, size_t unitbyte, int unitnum, FILE *fp) |
| Binary read function with byte swaping (assume file is BIG ENDIAN). | |
| float * | new_SS_load_from_file (char *filename, int *slen) |
| Load a noise spectrum from file. | |
| float * | new_SS_calculate (SP16 *wave, int wavelen, int *slen, MFCCWork *w, Value *para) |
| Compute average spectrum of audio input. | |
The actual subtraction will be performed in wav2mfcc-buffer.c and wav2mfcc-pipe.c. These functions are for estimating average spectrum of audio input, and file I/O for that.
Definition in file ss.c.
| static boolean myread | ( | void * | buf, | |
| size_t | unitbyte, | |||
| int | unitnum, | |||
| FILE * | fp | |||
| ) | [static] |
| float* new_SS_load_from_file | ( | char * | filename, | |
| int * | slen | |||
| ) |
Load a noise spectrum from file.
| filename | [in] path name of noise spectrum file | |
| slen | [out] length of the returned buffer |
Definition at line 66 of file ss.c.
Referenced by RealTimeInit(), and wav2mfcc().
Compute average spectrum of audio input.
This is used to estimate a noise spectrum from input samples.
| wave | [in] input audio data sequence | |
| wavelen | [in] length of above | |
| slen | [out] length of returned buffer | |
| w | [i/o] MFCC calculation work area | |
| para | [in] parameter |
Definition at line 111 of file ss.c.
Referenced by wav2mfcc().
1.5.1