If you’re left alone with a dog in a car, the best way to stop the dog from barking is to provide some type of warning. This could be anything from putting your hand over the dog’s mouth to using a loud voice. If all else fails, you can try calling the animal’s name or using a physical deterrent such as a toy or rock.