Hi,
I have the HTC One M8 Dual Sim. I had the same symptooms (main microphone performing extremely bad, phone calls only possible with speakers on --> back micro being used). It could be easily confirmed with the audio test (see above) that the main microphone is the problem, and taping off the...