# An event for when a participant stops being an active speaker?

**URL:** <https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352>\
**Category:** Zoom Apps\
**Created:** [March 8, 2023, 6:26am UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352 "2023-03-08T06:26:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![biinster](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biinster](https://devforum.zoom.us/u/biinster)\
**Post date:** [March 8, 2023, 6:26am UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352/1 "2023-03-08T06:26:49Z")

</div>

The intent is to be able to measure the time a participant spoke during the meeting.

`OnActiveSpeakerChangeEvent` fires when a participant starts speaking. The GUI highlights the speaker with a yellow frame in response to this, among other things. There is clearly also a cut-off point when an active speaker is not considered one anymore.

Is there something that can be done with the existing version of SDK to tell when that happens?

If not, the `OnActiveSpeakerChangeEvent` firing again would be a dream )

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 9, 2023, 12:24am UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352/2 "2023-03-09T00:24:15Z")

</div>

For your use case, you may find the [onMyActiveSpeakerChange()](https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk.html#onMyActiveSpeakerChange) event to be more useful.

With that event, you should be able to see when the current user stops speaking.

Let me know if that helps.

---

<div class="post-metadata">

**Author:** ![biinster](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biinster](https://devforum.zoom.us/u/biinster)\
**Post date:** [March 11, 2023, 3:56pm UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352/4 "2023-03-11T15:56:50Z")

</div>

Thanks for replying, Max!

No, unfortunately, that’s not what I’m looking for.

- `onMyActiveSpeakerChange()` fires only for the current user of the app. At least at this early stage there won’t be a version for participants - just **for the host - to gather data on how long each participant has spoken**.
- What’s even more relevant to my problem - `onMyActiveSpeakerChange()` issues the `stopped` flag only when another participant becomes active. `onActiveSpeakerChange()` behaves the same - **it only fires when someone starts speaking, but not when someone who has been, stops, which is what I need.**

So, just to be clearer with my op, I’m looking for a way to know when **any participant, not just the current user of the app, stops speaking, regardless of whether they got interrupted by someone, or just fell silent - as soon as Zoom deems them not speaking anymore**.

I get how that might happen too often - because of hesitations, pauses, or network issues, for instance - but that could be accounted for by adding a 1-2 seconds buffer before firing a callback.

**Alternatively** , I could do with an event that’s emitted whenever **a partcipant mutes** their mic.

Please let me know if there is anything in the current API I could get to do this for me.  
Much appreciated!

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 20, 2023, 7:31pm UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352/5 "2023-03-20T19:31:17Z")

</div>

> [@biinster](#):
>
> `onMyActiveSpeakerChange()` fires only for the current user of the app. At least at this early stage there won’t be a version for participants - just **for the host - to gather data on how long each participant has spoken**.

You should be able to use the onMyActiveSpeakerChange as any participant in the meeting. However, this would require that the backend is able to receive information about the participants via socket and then calculate the time they spoke.

> [@biinster](#):
>
> What’s even more relevant to my problem - `onMyActiveSpeakerChange()` issues the `stopped` flag only when another participant becomes active. `onActiveSpeakerChange()` behaves the same - **it only fires when someone starts speaking, but not when someone who has been, stops, which is what I need.**

I see your point here, it doesn’t allow accurate calculation of how long a user was speaking due to delays switching the active user and also doesn’t account for silence after they talk. I pinged our team to see if we have a better method.

In the meantime, can you share your use case for calculating the time a participant spoke during the meeting?

> [@biinster](#):
>
> Is there something that can be done with the existing version of SDK to tell when that happens?
> 
> If not, the `OnActiveSpeakerChangeEvent` firing again would be a dream )

You can use the [onMyMediaChange()](https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk.html#onMyMediaChange) function to respond to changes in the users microphone state.

---

<div class="post-metadata">

**Author:** ![biinster](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@biinster](https://devforum.zoom.us/u/biinster)\
**Post date:** [March 21, 2023, 1:44am UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352/6 "2023-03-21T01:44:05Z")

</div>

> [@MaxM](#):
>
> In the meantime, can you share your use case for calculating the time a participant spoke during the meeting?

This is one of the intended ways to track participants’ contributions and measure engagement.

> [@MaxM](#):
>
> You should be able to use the onMyActiveSpeakerChange as any participant in the meeting. However, this would require that the backend is able to receive information about the participants via socket and then calculate the time they spoke.  
> …  
> You can use the [onMyMediaChange()](https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk.html#onMyMediaChange) function to respond to changes in the users microphone state.

The plan is for the initial release to not require guests to run the app and wait for a wider adoption amongst those who need it for their work. So any methods that imply this would not be appropriate - yet, that is. And both `onMyActiveSpeakerChange` and `onMyMediaChange()` do 🙁.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 22, 2023, 8:42pm UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352/7 "2023-03-22T20:42:50Z")

</div>

I’ve reached out to our product managers to indicate this is a needed feature. I’ll work to get traction on it as I understand that tracking engagement is an important feature for us to support.

---

<div class="post-metadata">

**Author:** ![Billy117](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@Billy117](https://devforum.zoom.us/u/Billy117)\
**Post date:** [September 26, 2024, 5:14pm UTC](https://devforum.zoom.us/t/an-event-for-when-a-participant-stops-being-an-active-speaker/84352/8 "2024-09-26T17:14:18Z")

</div>

@MaxM Hello I am wondering if there has been an update on this? We are looking for similar functionality in our app.

Thanks,
