# Identify Active Speaker on Electron

**URL:** <https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147>\
**Category:** Electron\
**Created:** [July 23, 2019, 6:48pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147 "2019-07-23T18:48:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor.lunarx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/igor.lunarx/32/1354_2.png) [@igor.lunarx](https://devforum.zoom.us/u/igor.lunarx)\
**Post date:** [July 23, 2019, 6:48pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/1 "2019-07-23T18:48:47Z")

</div>

Hi Everyone,

**Description**  
I’m trying to identify the user who is speaking on the meeting there is something on the Electron SDK that I could achieve that?

**Which version?**  
This question is about Electron SDK, but if this can be achieved with other SDK please share it.

---

<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:** [July 24, 2019, 2:47am UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/4 "2019-07-24T02:47:25Z")

</div>

Hi igor,

Thanks for using Zoom SDK. You may use the following interfaces to identify the user who is speaking on the meeting:

- Windows: [https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/lib/node\_add\_on/win/h/meeting\_service\_components/meeting\_video\_interface.h#L58](https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/lib/node_add_on/win/h/meeting_service_components/meeting_video_interface.h#L58)
- Mac: [https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/sdk/mac/ZoomSDK/ZoomSDK.framework/Versions/A/Headers/ZoomSDKMeetingActionController.h#L274](https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/sdk/mac/ZoomSDK/ZoomSDK.framework/Versions/A/Headers/ZoomSDKMeetingActionController.h#L274)

Currently we do not have this interface in the Electron layer, I will pass this as an interface request to our engineering team.

Thanks!

---

<div class="post-metadata">

**Author:** ![igor.lunarx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/igor.lunarx/32/1354_2.png) [@igor.lunarx](https://devforum.zoom.us/u/igor.lunarx)\
**Post date:** [July 24, 2019, 6:31pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/5 "2019-07-24T18:31:49Z")

</div>

Could you show some example?

---

<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:** [July 24, 2019, 7:11pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/6 "2019-07-24T19:11:54Z")

</div>

Hey @igor.lunarx,

Here is our docs for Mac and Windows that include tutorials and examples/samples.

> **[Mac OS - Native SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/macos)**
>
> MacOS
> 
> 
> 
> Getting Started With the Mac SDK
> 
> Downloading and using the Zoom Mac SDK
> 
> You can download the latest edition of the Zoom Mac SDK directly from...

> **[Overview - Windows - Native SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/overview)**
>
> Zoom Windows Software Development Kit(SDK)
> 
> //s3.amazonaws.com/user-content.stoplight.io/8987/1541013063688
> Zoom Windows SDK comprises libraries for Win...

Let me know if this helps! Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![igor.lunarx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/igor.lunarx/32/1354_2.png) [@igor.lunarx](https://devforum.zoom.us/u/igor.lunarx)\
**Post date:** [July 24, 2019, 7:46pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/7 "2019-07-24T19:46:15Z")

</div>

> [@tommy](#):
>
> hat include tutorials and examples/samples.

The windows sdk I already tried for some success but what i need is the electron sdk.

---

<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:** [July 24, 2019, 7:56pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/8 "2019-07-24T19:56:33Z")

</div>

@igor.lunarx,

Unfortunately we do not have this feature in the electron SDK. I will pass this as an interface request to our engineering team.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [July 25, 2019, 1:12am UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/9 "2019-07-25T01:12:14Z")

</div>

Hi  
[https://github.com/zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron)

this is electron SDK about Mac and windows,you can try it.

Thanks

---

<div class="post-metadata">

**Author:** ![igor.lunarx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/igor.lunarx/32/1354_2.png) [@igor.lunarx](https://devforum.zoom.us/u/igor.lunarx)\
**Post date:** [July 25, 2019, 2:39pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/10 "2019-07-25T14:39:44Z")

</div>

@tommy,  
Thanks for the attention.  
I’m using the Windows SDK (Wrapper) so we can see if this might work for us.

I’m using

> CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingAudioController().Add\_CB\_onUserActiveAudioChange(onUserActiveAudioChangeAsync);

To get the active user, but the parameter is a uint lstActiveAudio

> void onUserActiveAudioChangeAsync(uint lstActiveAudio)

I got with:

> IUserInfoDotNetWrap user = CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().  
> GetMeetingParticipantsController().GetUserByUserID(userid);

Thanks for the help!

---

<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:** [July 26, 2019, 2:13am UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/12 "2019-07-26T02:13:24Z")

</div>

Hi Igor,

Thanks for the reply. Your code looks great. If you would like to refer how to implement this in C#, you may refer to the `onUserActiveAudioChange()` callback in [https://github.com/zoom/zoom-c-sharp-wrapper/blob/5500fbaac55b10068f1f05b166755048a8ca2034/zoom\_sdk\_c\_sharp\_wrap/meeting\_audio\_dotnet\_wrap.h;](https://github.com/zoom/zoom-c-sharp-wrapper/blob/5500fbaac55b10068f1f05b166755048a8ca2034/zoom_sdk_c_sharp_wrap/meeting_audio_dotnet_wrap.h;)

If you are willing to use it in Electron, even though we do not have this callback in the Electron layer, but you can refer to the implementation of `onUserAudioStatusChange()` in [https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/lib/node\_add\_on/win/meeting\_audio\_wrap\_core.cpp](https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/lib/node_add_on/win/meeting_audio_wrap_core.cpp), and write a call in the Electron layer to call this interface.

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, 6:35pm UTC](https://devforum.zoom.us/t/identify-active-speaker-on-electron/5147/14 "2020-08-21T18:35:36Z")

</div>

Closed on August 21, 2020, 6:35pm UTC


