You need a sound of 30 seconds or less and a way to add it as a ringtone. On recent versions of iOS, save the audio file to the Files app, tap Share, and choose Use as Ringtone if it appears. Otherwise open the file in GarageBand, tap Share, and choose Ringtone; GarageBand will shorten it if needed.
Then go to Settings, Sounds & Haptics, Ringtone, and pick it. The harder part is the sound itself. If you want a ringtone that is really yours, Ringoz writes one from a name and a short line, sings it, and walks you through setting it.
Related questions
Can I make an iPhone ringtone without GarageBand?
Yes, on recent iOS versions the Files app can set a short audio file as a ringtone.
How do I set a different ringtone for each contact on iPhone?
Open the contact, tap Edit, then Ringtone, and choose the tone.
How long can a ringtone be?
Keep it to 30 seconds; iPhone tools trim to that, and calls rarely ring longer.