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.