Bronchitis is a condition that affects the lungs and can cause a persistent cough. The cough associated with bronchitis can be dry or productive, meaning it produces mucus or phlegm. The sound of the cough can vary depending on the severity of the condition and the amount of mucus present in the lungs.

In acute bronchitis, which typically lasts for a few weeks, the cough may be dry and hacking, and can often be accompanied by a sore throat, runny nose, and fatigue. As the condition progresses and the lungs become more congested with mucus, the cough may become more productive, producing yellow or green mucus.
In chronic bronchitis, which is defined as a cough that lasts for at least three months per year for two consecutive years, the cough may sound wet or rattling due to the presence of excess mucus in the lungs. The cough may also be more persistent and harder to control, particularly in the morning or after physical activity.
In some cases, bronchitis can cause wheezing, which is a high-pitched whistling sound that occurs when air is forced through narrowed airways. Wheezing may be a sign of more severe bronchitis or underlying asthma.
It is important to note that the sound of a cough alone is not enough to diagnose bronchitis. Other symptoms, such as fever, chest pain, and difficulty breathing, may also be present and a medical professional should be consulted for an accurate diagnosis and appropriate treatment. Treatment may include rest, fluids, over-the-counter cough suppressants or expectorants, and in some cases, antibiotics.