libsent/src/wav2mfcc/ss.c

スペクトル減算 [詳細]

#include <sent/stddefs.h>
#include <sent/mfcc.h>

ソースコードを見る。

関数

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.


説明

スペクトル減算

実際のスペクトル減算は wav2mfcc-buffer.c および wav2mfcc-pipe.c で 行われます.ここでは平均スペクトルの推定とファイルI/Oのみ定義されています.

作者:
Akinobu LEE
日付:
Thu Feb 17 17:19:54 2005
Revision
1.3

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

ss.c45 行で定義されています。

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
戻り値:
a newly allocated buffer that holds the loaded noise spectrum.

ss.c66 行で定義されています。

参照元 RealTimeInit()wav2mfcc().

float* new_SS_calculate ( SP16 wave,
int  wavelen,
int *  slen,
MFCCWork w,
Value para 
)

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
戻り値:
a newly allocated buffer that contains the calculated spectrum.

ss.c111 行で定義されています。

参照元 wav2mfcc().


Juliusに対してThu Jul 23 12:17:08 2009に生成されました。  doxygen 1.5.1