# Enable audio on device

**URL:** <https://devforum.zoom.us/t/enable-audio-on-device/2935>\
**Category:** Android\
**Created:** [January 9, 2019, 10:10pm UTC](https://devforum.zoom.us/t/enable-audio-on-device/2935 "2019-01-09T22:10:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esvux](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@Esvux](https://devforum.zoom.us/u/Esvux)\
**Post date:** [January 9, 2019, 10:10pm UTC](https://devforum.zoom.us/t/enable-audio-on-device/2935/1 "2019-01-09T22:10:27Z")

</div>

I’m looking for a option to avoid the message “Call via Device Audio” and join at a meeting with the audio activated by default.

 ![Screenshot_2019-01-09-16-02-32](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/e6fc7b9b6440c0fb401819b73aeca6a55403655e.png)

My code:

`JoinMeetingOptions opts = new JoinMeetingOptions();`  
`opts.no_invite = true;`  
`opts.no_meeting_end_message = true;`  
`opts.meeting_views_options =`  
`MeetingViewsOptions.NO_BUTTON_PARTICIPANTS +`  
`MeetingViewsOptions.NO_BUTTON_MORE +`  
`MeetingViewsOptions.NO_BUTTON_SHARE +`  
`MeetingViewsOptions.NO_TEXT_MEETING_ID;`  
`JoinMeetingParams params = new JoinMeetingParams();`  
`params.displayName = "Some name";`  
`params.meetingNo = "Some meeting number";`  
`MeetingService meetingService = zoomSDK.getMeetingService();`  
`meetingService.joinMeetingWithParams(this, params, opts);`

I’m not using customUI.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [January 9, 2019, 11:13pm UTC](https://devforum.zoom.us/t/enable-audio-on-device/2935/2 "2019-01-09T23:13:51Z")

</div>

Hi Esvux,

By default, the audio is connected at the time you join a meeting. The option shown in your picture appears when you disconnected your audio upon entry or got mute on entry and you want to connect to your audio source again. We do provide options for connecting different audio sources but if you would like to choose audio source for your user, you may consider using `MeetingSettingsHelper`.

For example, if you want to auto connect to the device audio, you can do the following:

```auto
MeetingSettingsHelper msHelper = zoomSDK.getMeetingSettingsHelper();
msHelper.setAutoConnectVoIPWhenJoinMeeting(true);

```

Based on your use cases, you may also want to implement the listeners in `InMeetingServiceListener` such as:

```auto
onUserAudioStatusChanged
onUserAudioTypeChanged
...

```

You can find more info in the SDK reference: [https://marketplace.zoom.us/docs/sdk/android/sdk-reference](https://marketplace.zoom.us/docs/sdk/android/sdk-reference). The `MeetingSettingsHelper` and `InMeetingServiceListener` interfaces could be helpful.

Let me know if you have any other questions. Thanks for using Zoom SDK.

---

<div class="post-metadata">

**Author:** ![Esvux](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@Esvux](https://devforum.zoom.us/u/Esvux)\
**Post date:** [January 9, 2019, 11:20pm UTC](https://devforum.zoom.us/t/enable-audio-on-device/2935/3 "2019-01-09T23:20:37Z")

</div>

Thank you, just this `msHelper.setAutoConnectVoIPWhenJoinMeeting(true);` solve my problem.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 24, 2021, 8:24pm UTC](https://devforum.zoom.us/t/enable-audio-on-device/2935/4 "2021-08-24T20:24:32Z")

</div>

Marking as solved.

-Tommy
