Enable loudspeaker or switch audio output

Hi,
Anybody implemented or any referral documentation to get enable speaker (instead of earphones) during the call?
In devices list I can only see microphones and video input devices
Thanks in advance

replaceTrack
would be useful please look in openvidu documents
Thanks
Vipin