Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help for sound noise suppression ...

0 views
Skip to first unread message

hadi kazemi

unread,
Sep 24, 2009, 11:56:01 AM9/24/09
to
hi
I used DirectSound for recording sound. I want to record only when someone
speeches not when she's silent. So I checked average of capture buffer. If it
is between 123 and 132, sounds aren't recorded:
[code]
for( cT = 0; cT < nSizeToWrite; cT++ )
{
avg = avg + *((BYTE*)pbSrcData+cT);
}
avg = avg / nSizeToWrite;

if(avg > 132 || avg < 123 ){
//record in wave file.
...

[/code]
Unfortunately it doesn't work properly. Silences are recorded mostly. is
that because of environment noise ? how can i suppression it?

0 new messages