libsent/src/adin/zmean.c

入力音声の直流成分の除去 [詳細]

#include <sent/adin.h>
zmean.cのインクルード依存関係図

ソースコードを見る。

関数

void zmean_reset ()
void sub_zmean (SP16 *speech, int samplenum)
 Remove DC offset.

変数

static int zlen = 0
 Current recorded length for DC offset estimation.
static float zmean = 0.0
 Current mean.

説明

入力音声の直流成分の除去

作者:
Akinobu LEE
日付:
Sun Feb 13 20:31:23 2005

HTK の ZMEANSOURCE にあたる,直流成分の除去を行ないます.

直流成分の推定は入力デバイスごとに異なります. ファイル入力では,データ全体の振幅の平均が用いられます. マイク入力やネットワーク入力の場合,入力ストリームの 最初の ZMEANSAMPLES 個のサンプルの平均から計算され, その値がその後の入力に用いられます.

Revision
1.3

zmean.c で定義されています。


関数

void zmean_reset (  ) 

Reset status.

zmean.c50 行で定義されています。

参照元 adin_reset_zmean().

void sub_zmean ( SP16 speech,
int  samplenum 
)

Remove DC offset.

The DC offset is estimated by the first samples after zmean_reset() was called. If the first input segment is longer than ZMEANSAMPLES, the whole input is used to estimate the zero mean. Otherwise, the zero mean will continue to be updated until the read length exceed ZMEANSAMPLES.

引数:
speech [I/O] input speech data, will be subtracted by DC offset.
samplenum [in] length of above.

zmean.c69 行で定義されています。

参照元 adin_cut().


Juliusに対してTue Sep 22 00:15:03 2009に生成されました。  doxygen 1.6.0