Losing voice and sore throat

Patient: For the past 3 weeks. My throat has been. Sore and my voice is gone sometimes but at all times my voice is raspy and quiet. Tuesday. I went to see my doctor I had no fever and she checked my ears nose and mouth. She told me I have allergies. And gives me prescription for loratadine and nasal spray.can allergies. Be my problem?why wasn’t I checked for larnyngitis?