# Zoom Video Android SDK audio output to earpiece

**URL:** <https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990>\
**Category:** Android\
**Created:** [July 9, 2025, 1:41am UTC](https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990 "2025-07-09T01:41:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fteng](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@fteng](https://devforum.zoom.us/u/fteng)\
**Post date:** [July 9, 2025, 1:41am UTC](https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990/1 "2025-07-09T01:41:53Z")

</div>

**Description**

Whenever the user joins a session, they always use the speaker instead of earpiece.  
I am wondering if there a way to config the audio settings to let it use the earpiece instead?  
I checked the SDK reference and can’t find any.

**Which Android Video SDK version?**  
1.13.11

**To Reproduce(If applicable)**  
Pick up a VOIP call, and verify the user is using speaker

**Smartphone (please complete the following information):**

- Device: [e.g. Samsung S21]
- OS: [e.g. Android 14]

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [July 9, 2025, 5:27pm UTC](https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990/2 "2025-07-09T17:27:28Z")

</div>

Hi @fteng You can try the [setSpeaker](https://marketplacefront.zoom.us/sdk/custom/android/us/zoom/sdk/ZoomVideoSDKAudioHelper.html#:~:text=defined%20in%20ZoomVideoSDKErrors-,setSpeaker,-int%C2%A0setSpeaker) method in the AudioHelper class, set to false.

---

<div class="post-metadata">

**Author:** ![fteng](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@fteng](https://devforum.zoom.us/u/fteng)\
**Post date:** [July 10, 2025, 5:02am UTC](https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990/3 "2025-07-10T05:02:49Z")

</div>

Hi Ticorrian

Thanks for your reply. Apologies for the lack of clarity in my previous message.

We’re successfully using `setSpeaker` for user actions during a call. The issue is that we can’t configure the speaker mode when initializing the call. For example, this code doesn’t work as expected:

```auto
audioHelper.startAudio();
audioHelper.setSpeaker(false);

```

Our current workaround is set the speaker mode with a delay which is not ideal

```auto
   audioHelper.startAudio();
    new Handler(Looper.getMainLooper()).postDelayed(() -> {
      audioHelper.setSpeaker(false);
      audioHelper.setSpeaker(true);
      audioHelper.setSpeaker(false);
    }, 1000);

```

Is there a way to configure the audio so it can start with the speaker off?  
Thanks in advance.

Kind regards  
Fei Teng

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [July 14, 2025, 4:34pm UTC](https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990/4 "2025-07-14T16:34:40Z")

</div>

Hi @fteng, from my testing, I am able to call this function from my onUserAudioStatusChanged event callback function when the user joins the meeting. In the function, if the user is the current user, I call another function that executes this code:

```auto
fun testLogic(): Unit {
        val user: ZoomVideoSDKUser = ZoomVideoSDK.getInstance().session.mySelf
        val audioHelper: ZoomVideoSDKAudioHelper = ZoomVideoSDK.getInstance().audioHelper
        val audioType: ZoomVideoSDKAudioStatus.ZoomVideoSDKAudioType? = user.audioStatus?.audioType

        audioHelper.startAudio()
        audioHelper.setSpeaker(false);
        _zoomSessionUIState.update { it.copy( audioConnected = true, muted = true )}
    }

```

Then I run `ZoomVideoSDK.getInstance().audioHelper.speakerStatus` to check that the status is updated.

Is your join flow similar to this?

---

<div class="post-metadata">

**Author:** ![fteng](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@fteng](https://devforum.zoom.us/u/fteng)\
**Post date:** [July 21, 2025, 4:06am UTC](https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990/5 "2025-07-21T04:06:37Z")

</div>

Thanks Ticorrian  
This flow works for us! I think this is due to a race condition in our codebase.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 21, 2026, 4:06am UTC](https://devforum.zoom.us/t/zoom-video-android-sdk-audio-output-to-earpiece/134990/6 "2026-07-21T04:06:52Z")

</div>

Closed on July 21, 2026, 4:06am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
