I am using parselmouth (wrapper around praat) to extract intensity and pitch features by doing so:
snd = parselmouth.Sound(path)
intensity = snd.to_intensity()
pitch = snd.to_pitch()
However, the audio file contains long sequences of silences, which I would like to remove before I calculate these audio metrics. I am able to remove the silences by processing the numpy array returned by reading the audio through the wave package (and applying some logic), but am not able to pass the new array to parselmouth.
I am even open to providing startTime and endTime parameters to parselmouth, but cannot find documentation that supports that either.