I lost my voice because of bronchitis so how do I get my voice back?

Rest... Rest your voice as much as possible by not raising your voice, etc. Also, drink plenty of fluids. Avoid straining your voice. It will return in a few days. If it doesn't, you need to see your doctor.