Julius 4.2
関数 | 変数
libsent/src/adin/zmean.c

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

#include <sent/adin.h>

ソースコードを見る。

関数

void zmean_reset ()
 Reset status.
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.

説明

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

直流成分の除去を行ないます.

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

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

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


関数

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.c70 行で定義されています。

参照元 adin_cut().