Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKAudioRawDataSender Class Reference

Sends external raw audio data to the Zoom meeting. More...

#include <ZoomSDKRawDataAudioSourceController.h>

Inherits NSObject.

Instance Methods

(ZoomSDKError) - send:dataLength:sampleRate:channel:
 Sends audio raw data, Audio sample bits must be 16-bit audio.

Detailed Description

Sends external raw audio data to the Zoom meeting.

Definition at line 15 of file ZoomSDKRawDataAudioSourceController.h.

Method Documentation

◆ send:dataLength:sampleRate:channel:

- (ZoomSDKError) send: (char *) data
dataLength: (unsigned int) length
sampleRate: (int) rate
channel: (ZoomSDKAudioChannel) channel 

Sends audio raw data, Audio sample bits must be 16-bit audio.

Parameters
dataThe audio data‘s address.
lengthThe audio data’s length. Must be an even number.
rateThe audio data's sampling rate. When the channel is mono, supported sample rates are 8000, 11025, 16000, 32000, 44100, 48000, 50000, 50400, 96000, 192000, or 2822400. When the channel is stereo, supported sample rates are 8000, 16000, 32000, 44100, 48000, 50000, 50400, 96000, or 192000.
channelIdentifies the audio data channel type, default is ZoomSDKAudioChannel_Mono.
Returns
If the function succeeds, it returns ZoomSDKError_Success. Otherwise, this function returns an error.
Note
  1. The size of a single input must not exceed the number of bytes corresponding to 100 ms of audio. Exceeding this limit returns ZoomSDKError_SendTooMuchDataInSingleTime.
  2. Variable-length input is supported; it is recommended to send audio data in 10 ms, 20 ms, or 30 ms chunks (not exceeding 100 ms).
  3. If ZoomSDKError_TooFrequentCall is returned, this is not a genuine error; please wait briefly before retrying—for example, sleep for 10 ms before attempting to send the data again.