Split audio with AudioIntervals

How do I split an Audio object into multiple ones, where the ith object represents the ith interval satisfying a certain criterion?
A quick and dirty solution I just thought of is this:

a = Import["test.wav"]
int = AudioIntervals[a, #RMSAmplitude < .01 &]
a_split = AudioSplit[a, Flatten[int]]
a_split_rms = a_split[[Range[2, Length[a_split], 2]]]


But there are obviously lots of edge cases it doesn't catch.

• Have you seen AudioTrim[]? – J. M. will be back soon Oct 9 '16 at 7:57
• Welcome! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – user9660 Oct 9 '16 at 8:24
• @J.M. For some reason, "AudioTrim Mathematica" doesn't show up on Google results. Anyway, that looks like the solution for what I want. – Mitsos101 Oct 9 '16 at 10:04

a = Import["test.wav"]

asplit will now contain the segmented Audio objects.