How to make a sound audible inside one location but not outside it?

you could use triggers to activate/deactivate the sound when you cross the threshold, or use a customised gameplay volume to play sound when you are in it, although this will require some C++ tweaking