* Press and hold the power button of your smartphone along with volume down for 10 to 20 seconds.
* Now when you see the vivo logo start appearing on your smartphone screen release both the buttons.
* Now your smartphone will start performing force reboot and when this will end you will see your problem will be successfully solved.
* Clean your ear pice speaker and main speaker
https://howtofixphone.com/samsung-a50-ear-speaker-not-working-solution/