# Raw Audio Clarification

**URL:** <https://devforum.zoom.us/t/raw-audio-clarification/82496>\
**Category:** macOS\
**Created:** [February 2, 2023, 1:31am UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496 "2023-02-02T01:31:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasoundman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vasoundman/32/34599_2.png) [@vasoundman](https://devforum.zoom.us/u/vasoundman)\
**Post date:** [February 2, 2023, 1:31am UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/1 "2023-02-02T01:31:32Z")

</div>

**Description**  
I am reading conflicting information on raw audio data that Zoom SDK accepts.

**Which macOS Meeting SDK version?**  
v5.13.5.14876

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

**Device (please complete the following information):**

- Device: Apple MacBook Pro (13-inch, M1)
- OS: macOS Ventura 13.0.1

**Additional context**  
I am using a call like the one below:

`audioDataSender.send(&outputBuffer, dataLength: UInt32(length), sampleRate: Int32(44100))`

However, when I do this, I just get static bursts. This indicates to me that the format I am trying to send is incompatible.

So, when I have researched for more information on exactly what type of format to send, I see the majority of the locations I see that PCM data is 16 bit signed, mono channel and in little endian order is usually the answer. However, I know that there is an option for high def audio, and I believe stereo as well. So, is there multiple formats accepted? Or if I am using the ZoomSDKAudioRawDataSender we are limited to just mono? Also, is the sample rate correct at 44100? Or is it 48000? 32000? Please clarify there are conflicting answers in several places.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 8, 2023, 4:59am UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/2 "2023-02-08T04:59:42Z")

</div>

@vasoundman,

Thank you for writing us and we appreciate you sharing your feedback on the conflicting information. I am working to gather the information you requested internally and will share what I learn. In the meantime, can you share the links to the documentation with conflicting information? If needed, I want to make sure we make the necessary updates.

> [@vasoundman](#):
>
> Also, is the sample rate correct at 44100? Or is it 48000? 32000?

Have you checked the sample rate via the [getSampleRate](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_audio_raw_data.html#acc67fe37b02fdbd0a3594a9974af9f10) method ?

> [@vasoundman](#):
>
> What type of format to send, I see the majority of the locations I see that PCM data is 16 bit signed, mono channel and in little endian order is usually the answer

Please share the links to the resources where you are seeing this information and will help to submit a documentation update request to reflect that.

---

<div class="post-metadata">

**Author:** ![vasoundman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vasoundman/32/34599_2.png) [@vasoundman](https://devforum.zoom.us/u/vasoundman)\
**Post date:** [February 8, 2023, 3:46pm UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/3 "2023-02-08T15:46:01Z")

</div>

Thanks for getting back with me. I will do some digging to see where exactly we got these conflicting details. It may take a moment due to this is been researched for a while and the discovery was in different types of searches.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 8, 2023, 3:58pm UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/4 "2023-02-08T15:58:23Z")

</div>

No problem at all, and thank you for your contributions, @vasoundman! I am working on my end to get further clarification. We will update our support document if needed so you can have all the information in one central place. If you have any other questions or feedback, please share them here.

---

<div class="post-metadata">

**Author:** ![vasoundman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vasoundman/32/34599_2.png) [@vasoundman](https://devforum.zoom.us/u/vasoundman)\
**Post date:** [February 8, 2023, 4:06pm UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/5 "2023-02-08T16:06:51Z")

</div>

These are two examples of where it’s difficult to know what exactly you expect.

The following link says that we can send 16k to 48k support of mono or stereo:

> **[Video SDK and Meeting SDK comparison](https://support.zoom.us/hc/en-us/articles/360058998832-Video-SDK-and-Meeting-SDK-comparison)**
>
> Zoom's Video and Meeting SDKs allow your company to accelerate development and build fully customizable video-based applications with the performance, scale, and reliability of Zoom's industry lead...

The following link here says that we must convert our audio into a specific format. Send audio raw data, channel number must be mono, and sampling bits must be 16:  
[https://marketplace.zoom.us/docs/sdk/native-sdks/macos/sdk-reference/](https://marketplace.zoom.us/docs/sdk/native-sdks/macos/sdk-reference/)  
ZoomSDKAudioRawDataSender Class Reference

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 8, 2023, 4:15pm UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/6 "2023-02-08T16:15:17Z")

</div>

Thank you for sharing your feedback! I will help to clear this up @vasoundman!

---

<div class="post-metadata">

**Author:** ![vasoundman](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vasoundman/32/34599_2.png) [@vasoundman](https://devforum.zoom.us/u/vasoundman)\
**Post date:** [February 16, 2023, 4:48pm UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/8 "2023-02-16T16:48:37Z")

</div>

Hi there Donte,

I have made a few discoveries that you (and the readers of the post) maybe interested in hearing. I am getting a AVAudioPCMBuffer from my video playback in Swift.

The AVAudioPCMBuffer has the following:

- .floatChannelData
- .int16ChannelData
- .int32ChannelData

My audio (from the media file) is using float data. So the int16 and int32 is nil during playback. Converting the float to int16 was not the answer either. I had to go a step further and convert the int16 to a Char array. But now, the audio playback in Zoom so super slow. Im currently in the process of now converting the stereo (2ch) audio into mono. This probably will solve that issue.

This goes back to the question of why can we not send 2 ch audio to you. Looks like we are getting close, but still have questions about this.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 22, 2023, 4:42pm UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/9 "2023-02-22T16:42:07Z")

</div>

Thank you for sharing these details, @vasoundman! I just wanted to follow up and let you know I am working on this and will share updates as they become available.

---

<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:** [March 25, 2023, 2:42am UTC](https://devforum.zoom.us/t/raw-audio-clarification/82496/10 "2023-03-25T02:42:18Z")

</div>

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