# Which AudioSource does the Zoom SDK use for capturing audio?

**URL:** <https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005>\
**Category:** Android\
**Created:** [March 19, 2020, 3:42pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005 "2020-03-19T15:42:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [March 19, 2020, 3:42pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/1 "2020-03-19T15:42:00Z")

</div>

We’ve noticed an issue where others in a Zoom meeting room cannot hear the audio from one of the participants who has joined from an embedded Android device using the Zoom SDK. The participant is not muted. This seems to happen only when the embedded participant has system wide voice recognition enabled.

The embedded device allows multiple apps to grab the mic audio, but only if they use different AudioSources.

[https://developer.android.com/reference/android/media/MediaRecorder.AudioSource](https://developer.android.com/reference/android/media/MediaRecorder.AudioSource)

We’ve tested other video conferencing apps and they don’t seem to suffer from this problem. In other words, voice recognition can be enabled and the remote participants can still hear the embedded participants audio. We are currently investigating, but it would really help if we knew which AudioSource the Zoom SDK was using.

---

<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:** [March 20, 2020, 6:41pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/2 "2020-03-20T18:41:33Z")

</div>

Hi [vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg),

Thanks for the post. Regarding the AudioSource, for API level higher than 22, we are using `MediaRecorder.AudioSource.VOICE_COMMUNICATION`, otherwise, we are using `MediaRecorder.AudioSource.VOICE_RECOGNITION`.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [March 20, 2020, 7:23pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/3 "2020-03-20T19:23:02Z")

</div>

Thanks for the reply @carson.zoom

It’s very interesting that there is a case where you use VOICE\_RECOGNITION. This could explain why no audio is coming through when another app process is using this same audio source. However, the embedded device giving us trouble is running API level 27. Based on your answer, the Zoom SDK should be using VOICE\_COMMUNICATION and there would be no conflict.

Is there any other potential case where the SDK would choose VOICE\_RECOGNITION besides the API level? Do you check Build.VERSION.SDK\_INT? Or something else?

We really appreciate your help with this!

---

<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:** [March 20, 2020, 9:17pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/4 "2020-03-20T21:17:17Z")

</div>

Hi [vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg),

Thanks for the reply. I will ask the engineering team to confirm this and get back to you shortly.

In the meantime, is this embedded Android device something we could search and find the specs online? Do you have any other information that could help us to reproduce this issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [March 20, 2020, 10:03pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/5 "2020-03-20T22:03:14Z")

</div>

@carson.zoom yes, absolutely. This is happening on Vuzix M400 smart glasses:

[https://www.vuzix.com/products/m400-smart-glasses](https://www.vuzix.com/products/m400-smart-glasses)

M400 is API level 27. We tested the same scenario on M300 (API 23) and there is no issue. So we’re thinking there’s some conditional logic in the Zoom SDK that is choosing a different audio source between the two devices.

---

<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:** [March 20, 2020, 10:40pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/6 "2020-03-20T22:40:14Z")

</div>

Hi [vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg),

Thanks for the information. Really appreciate it. Will forward it to the engineering team and provide an update as soon as possible. Thanks!

---

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [April 15, 2020, 3:22pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/7 "2020-04-15T15:22:30Z")

</div>

@carson.zoom just a quick follow up. We have some more information on our end.

This might be related to AudioManager.setMode():

[https://developer.android.com/reference/android/media/AudioManager#setMode(int)](https://developer.android.com/reference/android/media/AudioManager#setMode(int))

Does the Zoom SDK ever call this method and which constant do you pass in? Also, is there any conditional logic around this call? We may have a bug in our platform and this additional information would help us.

---

<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:** [April 17, 2020, 3:39am UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/8 "2020-04-17T03:39:18Z")

</div>

Hi [vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg),

Thanks for the reply. Would like to confirm: Are you using Zoom default UI or Custom UI? And what is the SDK version you are using?

Thx

---

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [April 17, 2020, 8:46pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/9 "2020-04-17T20:46:59Z")

</div>

@carson.zoom Looks like we’re on v4.6.15086.0209 and we use a custom UI.

---

<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:** [April 17, 2020, 10:21pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/10 "2020-04-17T22:21:14Z")

</div>

@vuzix_greg Thanks for the info. I am consulting the engineering team on this and get back to you shortly. Thx

---

<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:** [April 22, 2020, 7:42am UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/11 "2020-04-22T07:42:45Z")

</div>

Hi [vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg),

Normally we will use AudioManager.MODE\_IN\_COMMUNICATION, if a device that does not support this mode, we will use AudioManager.MODE\_NORMAL. Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:53pm UTC](https://devforum.zoom.us/t/which-audiosource-does-the-zoom-sdk-use-for-capturing-audio/9005/12 "2020-08-21T20:53:05Z")

</div>

Closed on August 21, 2020, 8:53pm UTC


