If you're using an iPhone 15 or newer ... use wireless earphones like Apple's AirPods (and if you want to turn the volume up ...
Use them to snooze or turn off alarms ... When your iPhone freezes, the volume buttons can be your salvation. Force a restart by pressing the volume up button, followed by the volume down button ...