# Set audio device input/output same as system default

**URL:** <https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157>\
**Category:** macOS\
**Created:** [December 24, 2020, 10:54pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157 "2020-12-24T22:54:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nraj/32/3297_2.png) [@nraj](https://devforum.zoom.us/u/nraj)\
**Post date:** [December 24, 2020, 10:54pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/1 "2020-12-24T22:54:01Z")

</div>

**Description**  
I’m looking at the available interfaces for audio devices and I’m confused how the “Same as System” default mic/speaker setting can be passed as a parameter to selectAudioDevice function call. For example, on the zoom client we have these settings:

 ![Screen Shot 2020-12-24 at 5.46.25 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/2/f2f89c59c3000a711a565a4b754af1e2462484fa.jpeg)

If a user selects “Same as System”, how can we emulate that function call? I’m trying to use the following interface:

 ![Screen Shot 2020-12-24 at 5.45.33 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/b/5b3e87e97a488b7e25cd39bafc7d54a52397554d.png)

I’ve tried passing an empty string, nil, and “Same as System” as the DeviceID and DeviceName parameters but those don’t seem to work. How can we set the audio device to be the same as the system default?

**Which version?**  
Most recent macOS SDK

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Attempt to use the selectAudioDevice interface to set the input device as the system default

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 28, 2020, 8:57pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/2 "2020-12-28T20:57:39Z")

</div>

Hi @nraj, thanks for the post.

The reason passing “Same as System” into this method doesn’t work is because this is functionality that is built into the default meeting UI. There is no audio input device on your machine with the name “Same as System”, unless you have explicitly named a device as such.

In order to achieve this behavior programmatically, you would need to find your system’s currently selected audio input and enter the name of that device into the method referenced in your post.

Thanks!

---

<div class="post-metadata">

**Author:** ![nraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nraj/32/3297_2.png) [@nraj](https://devforum.zoom.us/u/nraj)\
**Post date:** [December 28, 2020, 9:29pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/3 "2020-12-28T21:29:10Z")

</div>

Hi @jon.zoom,

Thank you for the holiday response! Yeah that makes sense, I coincidentally had just finished up implementing the approach you suggested shortly before you replied and it seems to work as expected.

The audio setting interface feels a little odd overall - for example, I can get the list of audio devices from the zoom SDK using [ZoomSDKAudioSetting getAudioDeviceList], and to determine that a user has the setting set to “Same as Default”, it appears the only indication is that none of the returned SDKDeviceInfo objects have isSelected set to True. This behavior combined with the selectAudioDevice behavior makes the audio setting interface a bit wonky to use, but does seem like there’s a path to achieving the desired functionality.

Anyway, appreciate the help!

Thanks,  
Nitin

---

<div class="post-metadata">

**Author:** ![nraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nraj/32/3297_2.png) [@nraj](https://devforum.zoom.us/u/nraj)\
**Post date:** [January 5, 2021, 4:32pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/4 "2021-01-05T16:32:39Z")

</div>

Hi @jon.zoom,

As an aside, it would be a nice enhancement to be able to programmatically set the zoom setting to be the Same as System setting rather than choosing a specific device. This way in a custom UI app, we can mirror the same functionality as this menu in the zoom client UI:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/8/484c3499b7abb2b539e982b49783bbac76e1ef56.jpeg)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/4/447830364717b74d0831593c23f28507281e7d67.png)

I understand using the approach outlined above we can select the system default and find the system default, but it would be quite convenient to set the Zoom setting in this way such that Zoom automatically handles updating it’s audio devices when the system default changes.

Thanks!  
Nitin

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 5, 2021, 10:45pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/5 "2021-01-05T22:45:58Z")

</div>

Hi @nraj,

I definitely understand that it would be great to have a convenience method to use the system audio device. It may be possible for us to add this ability in a future release, so I will submit a feature request on your behalf and let you know as soon as we have any updates.

Thanks!

---

<div class="post-metadata">

**Author:** ![nraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nraj/32/3297_2.png) [@nraj](https://devforum.zoom.us/u/nraj)\
**Post date:** [January 6, 2021, 3:16pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/6 "2021-01-06T15:16:03Z")

</div>

Perfect, thank you @jon.zoom!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 7, 2021, 12:56am UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/7 "2021-01-07T00:56:56Z")

</div>

Always happy to help!

If you run into any other issues, please don’t hesitate to reach out. 🙂

---

<div class="post-metadata">

**Author:** ![richard1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard1/32/5472_2.png) [@richard1](https://devforum.zoom.us/u/richard1)\
**Post date:** [January 10, 2021, 3:18pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/8 "2021-01-10T15:18:57Z")

</div>

Just to reiterate how useful a method to set devices back to system default would be - as a sligth point of semantics this would not be a convenience method as there is currently no way to set devices to system default via the SDK (while I can set to a device that is currently system default, this is not the same as setting to system default as it won’t follow the user’s changes to the system default device which is what would be most useful…)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 19, 2021, 10:49pm UTC](https://devforum.zoom.us/t/set-audio-device-input-output-same-as-system-default/39157/9 "2021-01-19T22:49:30Z")

</div>

Hi @richard1,

Thank you for the insight. I will add your additional details to the feature request. Please keep an eye on our release notes for this feature to be added.

Thanks!
