# Preview audio issue

**URL:** <https://devforum.zoom.us/t/preview-audio-issue/131935>\
**Category:** Android\
**Tags:** video-sdk\
**Created:** [April 25, 2025, 7:09am UTC](https://devforum.zoom.us/t/preview-audio-issue/131935 "2025-04-25T07:09:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.mathew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/paul.mathew/32/53727_2.png) [@paul.mathew](https://devforum.zoom.us/u/paul.mathew)\
**Post date:** [April 25, 2025, 7:09am UTC](https://devforum.zoom.us/t/preview-audio-issue/131935/1 "2025-04-25T07:09:12Z")

</div>

On us.zoom.videosdk:zoomvideosdk-core 2.1.0 I was doing some testing for Preview of camera , Preview microphone and Preview Speaker.

For this I started a session with these values sessionName = “preCallTest”, sessionPassword = data.sessionPassword, jwtToken = data.token, and I was able to get the self camera feed using the bellow function

```auto
fun sdkStartSelfieZoomVideo(screen: ZoomVideoSDKVideoView) {
    val helper = ZoomVideoSDK.getInstance().videoHelper
    helper.startVideo()
    helper.rotateMyVideo(deviceRotation)
    helper.startVideoCanvasPreview(
        // videoView =
        screen,
        // aspect =
        ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_Original,
    )
}

```

Then I used the bellow function to test the mic

```auto
fun startMicroPhoneTest(testAudioDeviceHelper: ZoomVideoSDKTestAudioDeviceHelper) {
    try {
        val testAudioDeviceHelper = ZoomVideoSDK.getInstance().testAudioDeviceHelper
        val ret: Int = testAudioDeviceHelper.startMicTest()
        loge("startMicroPhoneTest test ret", " $ret -> ${ZoomErrorCode.parseErrorCode(ret)}")
    } catch (ex: Exception) {
        ex.printStackTrace()
    }
}

```

and I’m getting 9002 → UNKNOWN\_ERROR\_CODE .  
because of that I’m unable to run the bellow code for play mic test.

```auto
fun playMicTest() {
    val testAudioDeviceHelper = ZoomVideoSDK.getInstance().testAudioDeviceHelper
    val ret: Int = testAudioDeviceHelper.playMicTest()
    loge("startMicroPhoneTest test ret", " $ret -> ${ZoomErrorCode.parseErrorCode(ret)}")
}

```

there I’m getting 1 → ERRORS\_WRONG\_USAGE error.  
Am I missing something here.. ? can you please help me here ?

@ekaansh.zoom@ticorrian.heard@chunsiong.zoom @rehema.zoom @tommy@jon.zoom

---

<div class="post-metadata">

**Author:** ![paul.mathew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/paul.mathew/32/53727_2.png) [@paul.mathew](https://devforum.zoom.us/u/paul.mathew)\
**Post date:** [May 12, 2025, 2:02pm UTC](https://devforum.zoom.us/t/preview-audio-issue/131935/2 "2025-05-12T14:02:32Z")

</div>

@ekaansh.zoom @ticorrian.heard can you please have a look into this

---

<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:** [May 28, 2025, 4:09pm UTC](https://devforum.zoom.us/t/preview-audio-issue/131935/3 "2025-05-28T16:09:34Z")

</div>

Hi @paul.mathew Are you running these test outside of your actual sessions? These functions should be used before or after your session.

---

<div class="post-metadata">

**Author:** ![paul.mathew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/paul.mathew/32/53727_2.png) [@paul.mathew](https://devforum.zoom.us/u/paul.mathew)\
**Post date:** [May 28, 2025, 4:12pm UTC](https://devforum.zoom.us/t/preview-audio-issue/131935/4 "2025-05-28T16:12:37Z")

</div>

Hi @ticorrian.heard ,  
I’m using these function while the user is in the session . Because in this doc for Android preview

> **[Video SDK - Android - Preview](https://developers.zoom.us/docs/video-sdk/android/preview/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

it says  
**Users can only test their audio after joining a session with the SDK, for example, if they’re in a waiting room.**

---

<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:** [May 28, 2025, 4:37pm UTC](https://devforum.zoom.us/t/preview-audio-issue/131935/5 "2025-05-28T16:37:10Z")

</div>

In my testing, I use this function before joining a session and while in-session with no issue:

```auto
fun startMicroPhoneTest() {
    val testAudioDeviceHelper = ZoomVideoSDK.getInstance().testAudioDeviceHelper
    try {
        val ret: Int = testAudioDeviceHelper.startMicTest()
        println("startMicroPhoneTest test ret")
    } catch (ex: Exception) {
        ex.printStackTrace()
    }
}

```

Can you try that and let me know if that works?

---

<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:** [May 28, 2026, 4:37pm UTC](https://devforum.zoom.us/t/preview-audio-issue/131935/6 "2026-05-28T16:37:33Z")

</div>

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