Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Determine which mp3 files are silent with NAudio?

$
0
0
Mark,

Thanks for the reply. I wanted to write my understanding of what you've written and if you don't mind correcting me if I misunderstand, I'd appreciate it.

So, calling AudioFileReader.Read() fills in a byte array and then I can take that buffer, loop through some of the buffer and construct some floats out of the bytes and then compare those floats against the threshold value. Audio that is truly silent - where nothing was recorded for, say, 1 minute will have values that are 0.0F. Any audio that has just ambient background noise but nobody talking or no music would have a fairly low value (close to 0.0 but greater than it).

Thanks for you time!
Matt

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>