I think the devil will be in the details here. A typical gas generator likely has a poor inverter to generate the 110v or 220v output. I am always wary of connecting electronics with circuit board directly to them for this reason.
I have a relatively new construction solar home which has a large 48v DC battery bank feed by solar panels. I feed that to a large whole house inverter to produce 110v AC to run nearly everything. I have done no scientific testing but the system is dead quiet and no hum.