Dogs romping around and playing together tire rapidly and will sleep happily while recovering from the good, hardy play session. Until you have reeducated your dog about her barking habits, she should be confined to a place where she will cause the least disturbance. Closing the drapes will help muffle the noise for the neighbors. Leave a radio playing to mask noises from the street. You may also want to have disconnect switches on the telephone and doorbell if these set off a barking spree.
Most dogs have no clue as to whether barking is something good or something bad.
Humans are consistently inconsistent. In order to help your dog know your rules, teach him what they are. Each time your dog barks, after two or three woofs, praise her for sounding the alarm. Simultaneously, waggle an especially tasty food treat in front of her nose. Most dogs instantly become quiet because they can't sniff and lick the treat while barking.