Laryngitis
Laryngitis is one of the most common causes of hoarseness. It can be due to temporary swelling of the vocal folds from a cold, an upper respiratory infection, or allergies. Your doctor will treat laryngitis according to its cause. If it's due to a cold or upper respiratory infection, your doctor might recommend rest, fluids, and nonprescription pain relievers. Allergies might be treated similarly, with the addition of over-the-counter allergy medicines.
Source: National Institute on Deafness and Other Communication Disorders (NIDCD)