I think this is intended to clamp onto an exhaust pipe. Home generators usually end in a muffler screen, not a pipe that you could clamp onto and I don't think this would work.
You need something like this
or the ability to weld a pipe onto your muffler.