This project has moved. For the latest updates, please go here.

Silence recognition

Jun 4, 2014 at 8:21 PM

Is there a way to recognize where there's silence (or minimum sound) in a WAV\MP3 file?
If so, can I get a code sample please?

Thank you,
Jun 5, 2014 at 7:21 AM
Use audiofilereader to read blocks of floating point samples (in the Read) method. Then examine each one and see if they fall under your specified minimum threshold.