A .22lr fired from a 6” revolver with no hearing protection is slightly painful, to my ear.
A .22lr (or 22 short) fired from a 1.5” derringer is even louder. Done that a couple of times with friends when younger.
A .22lr fired from a 16” single shot rifle is noticeably more quiet than the revolver. But still “loud.”
A .22lr fired from a cut down 18” Winchester 1906 pump is a touch quieter than the single shot. But they’re close. You can fire them without plugs without feeling pain/like it’s too loud, but it’d probably be a bad idea to do it for an afternoon or even a full box of ammo.
A .22lr fired from a CZ bolt action with a barrel of 24” is still more quiet. With standard velocity (subsonic) ammo it’s sufficiently quiet that I’d shoot it without qualms, with no plugs. But even then that’s a bad habit to get into.
I’m sure the cylinder gap on a revolver increases loudness. I’m equally sure that a long barrel (on whatever action) quiets things down. The problem is that optimal ballistics varies depending on caliber. For a .22lr, past about 18” the extra length just creates more friction to slow the bullet. So the magic answer isn’t, unfortunately, to just design a rifle with a 35” barrel. There are definitely calibers that are quieter than others. Best bet for quiet = subsonic with low pressure and a long barrel, locked breech action.