For better sound with AirPods/earphones with an iPhone:
- Get Mimi (https://mimi.io/mimi-hearing-test-app).
- Do a hearing test.
- Save the audiogram in Health.
- Go to Settings > Accessibility > Audio & Visual > Headphone Accommodations and turn it on.
- Click Custom Audio Setup and add your audiogram.
Voilà!