Is there a way to find gaps, or silences in audio files?

Hello,

Am starting to work with/learn the AVAudioEngine.

Currently am at the point where I would like to be able read an audio file of a speech and determine if there are any moments of silence in the speech.

Does this framework provide any such properties, such as power lever, decibels, etc. that I can use in finding long enough moments of silence?

There's no direct API solution to finding silence, but I recommend you take a look at this sample code project:

https://developer.apple.com/documentation/avfaudio/audio_engine/using_voice_processing

The PowerMeter class shows how to calculate the average and peak power levels in ongoing audio. It's intended to drive a "meter" view, but you should be able to check for levels below a threshold over a short period of time, and recognize silence that way.

Is there a way to find gaps, or silences in audio files?
 
 
Q