Let me start by saying that there is any way I can will be able to tell you with any kind of certainty exactly what is going on in your particular case without being able to take a thorough history and perform a detailed examination. I am happy to give you some information, and my best guess as to what might be going on, but I would definitely recommend going to an ENT (ears, nose, throat) physician to be evaluated. One important thing to ask would be whether you are a smoker, which can definitely have detrimental effects on your larynx (voice box) and cause hoarseness
. There are lots of other causes of hoarseness however...one of the more common causes of hoarseness in the morning is something called laryngopharyngeal reflux. When you lie flat at night, gravity is no longer working for you helping to keep your stomach acid in your stomach. This can allow acid to reflux through your esophagus (swallowing tube) up to the level of your larynx. The acid is very irritating to the larynx and can cause edema and erythema within the larynx resulting in hoarseness. In order to diagnose this problem, an ENT would need to thoroughly examine you, including your larynx. I hope this helps.