How to play sound on muted iPhone?

Hi. I alluded to this elsewhere in a post but I can’t figure out why P5 won’t play sound on a muted iPhone. I’m new to coding but it seems like a lot of other javascript will play sounds on muted iPhones. Here’s a post from stackoverflow trying to figure out how to PREVENT it from happening:

Has anyone else wondered about this? I don’t understand why P5 sound won’t play but maybe it was an intentional decision? Is there anyway to override it? Most of what I find is posts from people trying to prevent sounds from playing on muted iPhone. So it seems weird…

Most I can tell is that I probably need to be doing something with the AVAudioSession class…but I don’t know what…