A barking cough
, or feeling ill --- it is unlikely to be due to infection. You need not take antibiotics.
Are you on any medications ? Some drugs can precipitate cough.
Do you have runny nose, nasal block etc ? Irritation of throat with secretion from back of nose can cause cough.
If your voice stays hoarse , do get an evaluation of your larynx
by an ENT surgeon.
Please revert with more details