NAudio icon indicating copy to clipboard operation
NAudio copied to clipboard

Recording has silence parts

Open EverBS2014 opened this issue 6 years ago • 2 comments

I implemented this example: https://markheath.net/post/how-to-record-and-play-audio-at-same I want to send the microphone recorded sound directly to the speakers. So far the example works but within the first 10 seconds I have unwanted silence parts in the recorded file. Here is is an example. wav

The original sound had no silence part in the beginning

EverBS2014 avatar Dec 18 '18 15:12 EverBS2014

I've answered this on StackOverflow - but basically this approach records exactly what was played - which had silence because the BufferedWaveProvider had not buffered enough sound early on. To record exactly what came in, just write directly to a WaveFileWriter as the audio comes in.

markheath avatar Dec 22 '18 10:12 markheath

Hello,

Same problem here.

It works just fine on many computers, also in a Dell with AMD Ryzen processor it has unwanted silence parts.

What can i do? There are some settings that needs to be set depending on hardware ?

davidromero55 avatar Apr 11 '22 18:04 davidromero55