Legally, you can be in just as much trouble shooting a pellet gun as a firearm inside city limits.
Air Arms makes pellet rifles with a suppressor built into the barrel. They are expensive, have a magazine and quiet.
If your legally allowed to shoot then your much better off shooting a bolt action 22 using quiet ammo.