Script for attenuating or silencing borders of clip

I have isolated sound waves surrounded by near silence, I want to attenuate or silence with zero crossing the boarders, potentially being able to measure the time range to inscribe in(the initial border) and burst out(the last border).

I think we can trim silent segments of a show by telling the software how large the cuts are to be, but I don’t think we can get the show to tell us. I don’t know of a way to make the silent sensing tools tell the trimmer where to trim.


Possibly a noise gate ?