If your in USA and put any device/addition on the weapon with objective of reducing the noise according to ATFE you are making a silencer/suppressor and subject to $200 tax and all legal requirements.
a Longer barrel will allow the gases to expand so lower the pressure impulse when the bullets exists the barrel. If you keep the bullets at 1000 fps or less there will be no crack involved. If you have access to any weapons with subsonic ammo available (22LR, 38 special, 44 special, 45 colt) you can hear what it would be like - visit a cowboy action shooting match and listen to older carbines in subsonic loadings.