Generally if you have developed hoarseness and it has not resolved after 3 weeks it is important to have it checked to make sure you are not developing throat cancer.
Hoarseness is caused by viral infection in the upper respiratory tract. Known as laryngitis (inflamed larynx). Other common factors that can cause, contribute to, or worsen your condition include: acid reflux, smoking, prolonged singing or overusing your vocal cords, inhaling toxic substances and coughing excessively. Prolonged hoarseness is usually due to using your voice either too much, too loudly, or improperly over extended periods of time. These habits can lead to vocal nodules (singers nodes), which are callous-like growths, or may lead to polyps of the vocal folds (more extensive swelling).
The treatment of hoarseness depends on the cause. Most hoarseness can be treated by simply resting the voice or modifying how it is used. However the otolaryngologist may make some recommendations about voice use behaviour, refer the patient to other voice team members, and in some instances recommend surgery if a discrete lesion, such as a nodule or polyp, is identified.