I also don't understand your goal. Sound insulation?
Anyway, there are ways to add foam that meets codes. These guys (
http://www.foammywalls.com/) and I'm sure many others can shoot foam into existing walls.
If you were just in a normal framed area of your house, you could add double drywall and also double wall for sound proofing. Double wall means that you offset the studs between rooms so that the drywall does not fasten to the wall in the next room. Then, add insulation in the gap.