Get NoScript.
But the problem of audio from an unidentified tab suggests a neat feature/add-on for future tabbed browsers: indicate when a tab is making sound with some animation in its tab/favicon. (This might be easiest for Chrome with its process-per-tab model -- which processes are making audio calls?)