Barking cough is caused by croup brought on by change in temperature, allergies etc. It can also be caused by a viral respiratory upper tract infection. Prescription drugs and antibiotics should be avoided in babies. Make sure you visit a doctor for the right medication.