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

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

$
0
0
To do this, you need to examine the PCM samples individually. Mp3FileReader actually emits PCM in its Read method. It will be even easier if you use AudioFileReader as the samples will come as floating point numbers (with 1.0 as maximum value). Then you just examine each sample in a small range (e.g. 20ms) and check that none go over a certain minimum threshold. If so, you cen say that that block is silent.

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images