Hi, I never had experience with pH in gaussian. I think there is no keyword for pH . But you can change environment around the molecule using solvent effect. It may can change pH. However, I don't know how extend it will change your optical and electronic properties of molecule.