Huh... I'm going to go in contradiction with the other posts but I do think genes can have something to do with it, because:
I used to have the same problem, and my father had this problem his whole life - still does.
I fixed this problem by fixing my health, allergy problems and food intolerance.
My father have had allergies all his life and recently discovered that he had food intolerance.
Therefor, since my loss of voice came from health issues, I think it can be somehow considered as hereditary. I don't know anything about genetics, so I don't know if that term applies. I noticed that my loss of voice was worst when in stressful social situation, but re-thinking about it I don't think it was worst per say: I think it's just because I noticed it more since I was feeling bad to clear my throat and cough all the time.
... Also probably because everytime I had to talk was a stressful social situation.