You can use a clicker to mark NOT barking and reward non-barking. Once this is consistent you can add a cue to it... I use "quiet", but softly - a yell of QUIET is like you're joining in barking.
Once my dogs do know "quiet", then I will use a spray bottle or sin binning when they are not "quiet" after the cue.