Detecting sound end?

Hello there, since I"m going to be coding a radio in for my gamemode soon, I was wondering if there was a way to automatically detect when a sound ends?

Get the sound length and start a timer.

Sadly gmod timers are not reliable so there can be offsets that can be -2 to +2 second.

Also the SoundDuration function still seems to be broken sometimes.