This works by using an addon folder to overwrite an existing ringtone, similar to the weapon skin process.
Obtain the track file you would like to use as a ringtone
Download and install an audio converter, I prefer ffmpeg https://ffmpeg.org/
Convert the file to an mp3 with a sample rate of...