Hold up a treat or toy to get your dog's attention.
Say the command "speak" in a clear and cheerful voice.
Wait patiently for your dog to bark. As soon as they bark, give them the treat or toy and praise them lavishly.
Repeat steps 2 and 3 several times until your dog is reliably barking on command.
Once your dog is reliably barking on command in a quiet environment, start practicing in more distracting environments.
Teaching your dog to bark on command takes time and patience. Don't get discouraged if your dog doesn't get it right away. Just keep practicing and be consistent.
By following these tips, you can teach your dog to bark on command, which can be useful for a variety of purposes, such as alerting you to visitors or danger.