Once your dog can reliably bark on command, teach him the "quiet" command.
In a calm environment with no distractions, tell him to "speak." When he starts barking, say "quiet" and stick a treat in front of his nose.
Praise him for being quiet and give him the treat.