react native – Audio is being performed from ear speaker on iOS Internet App after utilizing the microphone


We’re growing aweb app the place customers can document their voice and play an audio response from a chatbot.

Once we play the audio file at first, we are able to clearly hear it from the iOS gadget from the underside speaker. After the consumer information and sends an audio message, from thereon and solely on iOS, the audio response from the chatbot is performed from the ear speaker, and we are able to hardly hear the sound because the quantity is simply too low.

We’re utilizing the native browser’s operate to play sound:

const audio = new Audio("https://hyperlink to sound file")
audio.play()

And utilizing ‘react-audio-analyser’ node module to document consumer’s voice.
https://www.npmjs.com/bundle/react-audio-analyser

Has anybody encountered this problem?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles