Teach your dog the command: quiet. Use praise and treats when he is behaving properly. Citrus collar may help in some cases. Preventing him access from the source which causes him to bark (ex street view window). Provide him with other distractions like toys and extra exercise may help.