Easy with ffmpeg. Use "-t" option in secons for the duration and "-ss" in seconds or timestamp to set the start time offset.
Examples:
Trim starting from 10 seconds and end at 16 seconds (total time 6 seconds)
ffmpeg -i input.mp3 -ss 10 -t 6 -c:a copy output.mp3
Trim from timecode 00:02:54.583 to end of file
ffmpeg -i input.mp3 -ss 00:02:54.583 -c:a copy output.mp3
Trim from 00:02:54.583 for 5 minutes
ffmpeg -i input.mp3 -ss 00:02:54.583 -t 300 -c:a copyoutput.mp3