# Getting participants in audio from onOneWayAudioRawDataReceived()

**URL:** <https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200>\
**Category:** Windows\
**Created:** [October 4, 2023, 4:26am UTC](https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200 "2023-10-04T04:26:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gibron](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gibron/32/37298_2.png) [@gibron](https://devforum.zoom.us/u/gibron)\
**Post date:** [October 4, 2023, 4:26am UTC](https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200/1 "2023-10-04T04:26:00Z")

</div>

We are getting user-based audio via the `onOneWayAudioRawDataReceived()` callback ([link to docs](https://marketplacefront.zoom.us/sdk/meeting/windows/class_i_zoom_s_d_k_audio_raw_data_delegate.html#aa397642b58599cbd61fc19bcbea94d51)).

It provides `uint32_t node_id` which seems to represent speakers, how do we resolve those to participant names?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 4, 2023, 8:29am UTC](https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200/2 "2023-10-04T08:29:16Z")

</div>

@gibron , [IMeetingParticipantsController](https://marketplacefront.zoom.us/sdk/meeting/windows/class_i_meeting_participants_controller.html) has a GetUserByID method, which returns an IUserInfo object.

This IUserInfo object has a [GetUserName](https://marketplacefront.zoom.us/sdk/meeting/windows/class_i_user_info.html#a2cea9fde9d32becbc84abc022ef309ff) method.

---

<div class="post-metadata">

**Author:** ![gibron](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gibron/32/37298_2.png) [@gibron](https://devforum.zoom.us/u/gibron)\
**Post date:** [October 7, 2023, 4:14am UTC](https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200/3 "2023-10-07T04:14:44Z")

</div>

Thanks @chunsiong.zoom , will give this a try!

---

<div class="post-metadata">

**Author:** ![gibron](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gibron/32/37298_2.png) [@gibron](https://devforum.zoom.us/u/gibron)\
**Post date:** [October 17, 2023, 5:30am UTC](https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200/4 "2023-10-17T05:30:37Z")

</div>

Okay @chunsiong.zoom we have had the opportunity to try.

The `GetUserName` method of the `IUserInfo` class only seems to return numbers, such as `66` or `71` or `114`. I was expecting this to get the participants name as a string are these ids referencing something else? How do we use those values?

Also for the `onOneWayAudioRawDataReceived` method of the `IZoomSDKAudioRawDataDelegate` class, is that expected output a continuous audio stream simultaneously for each meeting participant? So while one person is talking, the rest of the audio streams will remain silent?

This might be a separate question so please let me know if you’d like me to edit this and create a new question. But after working on this a bit it feels like we have to open up a websocket connection for each participant, and then apply our own timestamp for each piece of audio (we are transcribing it), and then try to assemble them in order in another process outside of the individual websocket connections.

Does that feel like the recommended use? It feels like there should be a better way of doing this rather than reconstructing the meeting audio streams. there another more straightforward way?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 17, 2023, 7:29am UTC](https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200/5 "2023-10-17T07:29:12Z")

</div>

@gibron ,

> The `GetUserName` method of the `IUserInfo` class only seems to return numbers, such as `66` or `71` or `114` . I was expecting this to get the participants name as a string are these ids referencing something else? How do we use those values?

Odd… did they use numbers for their name?

> Also for the `onOneWayAudioRawDataReceived` method of the `IZoomSDKAudioRawDataDelegate` class, is that expected output a continuous audio stream simultaneously for each meeting participant? So while one person is talking, the rest of the audio streams will remain silent?

` onOneWayAudioRawDataReceived()` returns a node\_id too.  
This is a unique value for each individual. If I remember this correctly, it should match the user id in IUserInfo.

Let’s assume the case where 2 person speaks at the same time, you might have `onOneWayAudioRawDataReceived()` firing at roughly the same time, but with 2 different node\_id

> This might be a separate question so please let me know if you’d like me to edit this and create a new question. But after working on this a bit it feels like we have to open up a websocket connection for each participant, and then apply our own timestamp for each piece of audio (we are transcribing it), and then try to assemble them in order in another process outside of the individual websocket connections.

I might open a websocket for each unique node\_id. Another alternative would be to save the audio individually for each unique node\_id, and then passing it to a transcription service.

---

<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:** [November 16, 2023, 5:30pm UTC](https://devforum.zoom.us/t/getting-participants-in-audio-from-ononewayaudiorawdatareceived/96200/6 "2023-11-16T17:30:10Z")

</div>

Closed on November 16, 2023, 5:30pm UTC

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