Danazol (Gonablock) is indicated in the treatment of endometriosis and menorrhagia. Like most medicines, it can cause some side effects. In theory voice changes is one such effect but it affects no more than 3% of patients and that too after prolonged use. For relatively short duration treatment, it is unlikely that your voice will be affected.
I am more concerned with the unlimited use of alprazolam (Alprax) and cannot imagine it being prescribed for 10 years. Apart from causing addiction and dependence, it can ultimately lead to some very serious adverse effects, tremors, bone pain, impaired memory, ataxia, etc. It is cleared for use only for very short term use for anxiety and has no direct role in the treatment of duodenal ulcer.
If your duodenal ulcer is healed, there is no reason to take medicines except to make sure that you are not suffering from H. pylori infection. Unlimited use of pantoprazole (Pantocid) can cause many side effects including increased risk of community acquired pneumonia (CAP) resistant to most antibiotics, reduction in white cell count, blurring of vision, etc.