CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Posts
    93

    Editing audio stream

    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

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Editing audio stream

    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.

  3. #3
    Join Date
    Sep 2008
    Posts
    93

    Re: Editing audio stream

    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.

  4. #4
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Editing audio stream

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured