Windows 10 mobile can automatically turn on speaker when you move your phone away from ear.
- Navigate to settings.
- Tap on system.
- Tap on phone.
- Scroll down to “Audio routing”.
- Tap on Audio routing settings.
- Turn on “During a call, turn on the speaker when I move my phone away from my ear”.