Rest your voice; whisper instead of using your voice box. Carry a pencil and paper to replace conversation.
Give up smoking.
Eat mild, easily swallowed foods; drink plenty of non-alcoholic liquids.
Stay in a humid atmosphere. Use a humidifier or inhale steam - sit in the bathroom with the door closed and the hot shower on, or fill a bowl with boiling water, lean over it with a towel over your head and breathe in the steam.
If the hoarseness lasts for longer than 3 weeks or you have difficulty breathing, you should call your doctor