How old is the phone and when did this problem start occuring?
Check if this helps -
Some other things that you could try -
1. Ensure that nothing is covering the speaker
2. For the same volume level, check the volume is ok with Bluetooth and wired headphones.
3. Take it to the service center and get it checked.