スペクトル減算 [詳細]
#include <sent/stddefs.h>
#include <sent/mfcc.h>
関数 | |
static boolean | myread (void *buf, size_t unitbyte, int unitnum, FILE *fp) |
float * | new_SS_load_from_file (char *filename, int *slen) |
float * | new_SS_calculate (SP16 *wave, int wavelen, Value para, int *slen) |
スペクトル減算
実際のスペクトル減算は wav2mfcc-buffer.c および wav2mfcc-pipe.c で 行われます.ここでは平均スペクトルの推定とファイルI/Oのみ定義されています.
ss.c で定義されています。
static boolean myread | ( | void * | buf, | |
size_t | unitbyte, | |||
int | unitnum, | |||
FILE * | fp | |||
) | [static] |
Binary read function with byte swaping (assume file is BIG ENDIAN)
buf | [out] read data | |
unitbyte | [in] size of a unit in bytes | |
unitnum | [in] number of unit to be read | |
fp | [in] file pointer |
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 |
参照元 new_wav2mfcc(), と RealTimeInit().
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 | |
para | [in] parameter | |
slen | [out] length of returned buffer |
参照元 new_wav2mfcc().