# Can't use speaker, just earpiece

**URL:** <https://react-native-webrtc.discourse.group/t/cant-use-speaker-just-earpiece/1509>\
**Category:** Help\
**Created:** [March 17, 2022, 5:51pm UTC](https://react-native-webrtc.discourse.group/t/cant-use-speaker-just-earpiece/1509 "2022-03-17T17:51:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aguedob](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/aguedob/32/588_2.png) [@aguedob](https://react-native-webrtc.discourse.group/u/aguedob)\
**Post date:** [March 17, 2022, 5:51pm UTC](https://react-native-webrtc.discourse.group/t/cant-use-speaker-just-earpiece/1509/1 "2022-03-17T17:51:25Z")

</div>

Hi all,

I have a RN app using react-native-webrtc and lib-jitsi-meet. All is working fine except the audio output. I would like to use the speaker instead of the earpiece. I tried react-native-incall-manager on this way:

```auto
import InCallManager from 'react-native-incall-manager'
....
// during my component initialisation
InCallManager.start({media: 'video'}) 
InCallManager.setSpeakerphoneOn(true);
InCallManager.setForceSpeakerphoneOn(true);

```

I’m able to see with logcat that is action in done, but audio still comes from earpiece

```auto
D/InCallManager: setSpeakerphoneOn(): true
D/InCallManager: setForceSpeakerphoneOn() flag: 1
D/InCallManager: --- updateAudioDeviceState: wired headset=false, BT state=UNINITIALIZED
D/InCallManager: Device status: available=[SPEAKER_PHONE, EARPIECE], selected=SPEAKER_PHONE, user selected=SPEAKER_PHONE
D/InCallManager: --- updateAudioDeviceState done

```

Any idea why is not working?

---

<div class="post-metadata">

**Author:** ![junaiddarajat](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/junaiddarajat/32/523_2.png) [@junaiddarajat](https://react-native-webrtc.discourse.group/u/junaiddarajat)\
**Post date:** [March 23, 2022, 9:15pm UTC](https://react-native-webrtc.discourse.group/t/cant-use-speaker-just-earpiece/1509/2 "2022-03-23T21:15:51Z")

</div>

Hey,  
usually having the first line i.e InCallManager.start with media ‘video’ should do the trick which enables the Automatic Basic Behavior and forces speaker, does that alone without the further two lines not work for you?

---

<div class="post-metadata">

**Author:** ![aguedob](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/aguedob/32/588_2.png) [@aguedob](https://react-native-webrtc.discourse.group/u/aguedob)\
**Post date:** [March 24, 2022, 7:18am UTC](https://react-native-webrtc.discourse.group/t/cant-use-speaker-just-earpiece/1509/3 "2022-03-24T07:18:46Z")

</div>

I managed to get it working. Was a silly thing. This permission was missing 😄

```
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
```
