Automating Splitting of Start of Last 10 Seconds in Audio Tracks for Separate Export

I’m seeking advice on automating the process of trimming the start of the last 10 seconds of multiple audio tracks and exporting them as separate tracks. I prefer using Audacity or a Python script for this task.

To clarify, I don’t want to remove the last 10 seconds entirely; instead, I aim to create separate segments starting from the last 10 seconds of each track and export them individually.

Here’s what I’d like to accomplish:

  1. Import multiple audio files into Audacity or another suitable tool.
  2. Automatically select and trim the portion from the start of each track, leaving only the last 10 seconds as a separate segment.
  3. Export each trimmed segment as a separate audio track file.

I just want to split the last 10 seconds automatically because I don’t want to do it manually for 96 tracks.