Trid Phantasm (SR5 p.291) creates a realistic, multi-sensory illusion contained in one area (Force radius) anywhere within the caster's line of sight. It can definitely be seen by people outside the area of the spell, but anyone viewing it has a chance to resist with Intuition + Logic ("Physical Illusions," SR5, p.290).
Some GMs let players get away with the "I create an illusion of an empty corridor" trick, but that can get pretty abusive. I agree with PiXeL01 and SSDR ... the spell can add something, not remove something. You could cover up a quiet sound with a louder one, or cover up a person or object with a larger illusion, but you can't erase sounds or objects from the scene.
TL;DR: Trid Phantasm can give you something to hide behind (or inside), but it can't make you silent or invisible.