Like I said. I just checked, using Audio actions, and there's no need to implement this, since the phone itself controls the sound settings, so, when it's in silent mode the sounds are already muted by the phone, no matter if you play them with the audio action in Construct.
Cheers!