XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

help for sound noise suppression ... (directSound)

Last post 24/09/2009 16:34 by hadikazemi. 0 replies.
  • 24/09/2009 16:34

    help for sound noise suppression ... (directSound)

    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:
    for( cT = 0; cT < nSizeToWrite; cT++ )
    {
    	avg = avg + *((BYTE*)pbSrcData+cT);
    }
    avg = avg / nSizeToWrite;
    		
    if(avg > 132 || avg < 123 ){
    //record in wave file.
    ...
    
    

    Unfortunately it doesn't work properly. Silences are recorded mostly. is that because of environment noise ? how can i suppression it?
Page 1 of 1 (1 items) Previous Next