Click to See Complete Forum and Search --> : Editing audio stream


CrazyPlaya
March 17th, 2010, 09:30 AM
Hi @ all,

Iīm recording audio data that come from network in rtp packets with a size of 160b per frame.
Iīm writing every frame in a wavefile seperately.
At the beginning of the recording data I have the noise from pick up and at the end from hang up a phone.
I want to delete these noises or overwrite with silence.
Whatīs the best way to do this?
Opening wave file, jumping to data part overwriting or deleting the first x bytes and then the same by jumping to end of the file or is there a better way?

Best Regards
Crazy

hoxsiew
March 17th, 2010, 12:58 PM
If you know the beginning and end points, why not attenuate them before saving? I'd recommend fade-in/out to prevent pops and clicks.

CrazyPlaya
March 18th, 2010, 03:32 AM
I donīt know the end, just if receiving has ended.
But then I have the sound of hanging up the phone saved in wave file.
If I try to overwrite the last ca. 3072 bytes in the wave file it doesnīt change anything.

hoxsiew
March 18th, 2010, 07:39 AM
Do you have a wave editor like Audacity (http://audacity.sourceforge.net/)? You could load up several typical waves and try to determine where the hangup click are occurring on average, and come up with an attenuation strategy based on these data.

What is you sample rate and bits per sample?