Hi, Welcome to HCM. Thanks for posting your query here. The symptoms of hoarseness
of voice more than 2 or 3 weeks is an alarming issue. The first and foremost thing to do is dont strain your voice like more coughing or attempting to clear it. It could be a vocal nodule which is a small swelling on the vocal fold. It can be treated by voice habilitation and depending on the severity by a simple surgery. The outcome of the surgery depends on the level of voice use. If possible give voice rest and try to make an appointment with ENT specialist
. Dont get worried your singing capacity will be retained.
Hope this is helpful.