I had the same problem with my HTC M8 recording with whatsapp.
I tried a simple solution, go to the voice recorder >> settings >> encoding format , and change the recording quality to "Better Quality (AMR_WB)
Then try with whatsapp , with me it worked and it is now louder:
I hope this will help
Try and let me know your feedback