Not exactly what you asked for, but maybe you'll find it interesting.
Tidal sound explorer can take long samples and split them into segments based on transients (using onset detector). It does not save the segments into files but store the segments info in a file and allows you to play the segments directly from tidal.