I am writing a script to analyze a series of long audio recordings. Each file is about 10 minutes in duration, and I have many of these files as they are segments of hour-long recordings. The analysis I am trying to run is at the subsecond level: quantifying the frequency of a regular AM pulse (the heartbeat of a bird) and looking at how this frequency changes over time.
To run this analysis on the entire files is impractical and unnecessary. Instead, I am trying to figure out how to sample only the first 10 seconds from each minute in the recording. This will be somewhat lossy, but we don't expect the rate of the heartbeat to change much within a single minute. I'm not sure if this will require further segmenting each 10 min .wav file into a series of single 1 min .wav files, but would prefer to avoid this step if possible.
My question is: how do I tell the program to only analyze the first 10 seconds of each minute in an audio recording?
Many thanks for your help.