Though it can be challenging at times to distinguish between the two sounds—especially for first-time dog owners—it usually boils down to attentiveness and observation. A bark followed by a distinct hacking noise usually indicates that your dog is experiencing discomfort or irritation during vocalization.