Choosing Audio Output of iPhone while using HTMLAudioElement.

I was working on a project where I used the HTMLAudioElement to record an audio response. While playing the audio on iPhone, I noticed that the sound came just from the ear speaker and not the loud speaker which is desired by the user. Is there a way to select the output to come out of the loud speaker as in the former case the user can't hear the preview audio properly?

Same issue. When I use the MediaRecorder class on iOS safari it switches to head speaker. When the recording is done and I want to preview the recorded audio it still plays in the head speaker. What is the way to force the audio to play on Loudspeaker?

Thank you in advance 🙌

Same issue. When I use the MediaRecorder class on iOS safari it switches to head speaker. When the recording is done and I want to preview the recorded audio it still plays in the head speaker. What is the way to force the audio to play on Loudspeaker?

Thank you in advance 🙌

Choosing Audio Output of iPhone while using HTMLAudioElement.
 
 
Q