- 1 year ago
Not able to create Object for audioRawData while trying to access Raw Audio of user using video sdk zoom
Comment
1 / 1
To create an object for audioRawData while trying to access Raw Audio of a user using Zoom's video SDK, you can follow these steps:
- Import the necessary Zoom SDK modules in your code:
javascriptimport zoomus
from zoomus import ZoomClient
- Create a Zoom client object by passing your Zoom API key and secret:
makefileclient = ZoomClient("YOUR_API_KEY", "YOUR_API_SECRET")
- Use the
get_user_audio_settings()
method to get the audio settings of a user by passing the user ID as a parameter:
makefileaudio_settings = client.user.get_user_audio_settings(user_id=USER_ID)
- Use the
get_raw_data()
method of theaudioRawData
object to get the raw audio data:
makefileaudio_raw_data = audio_settings.get("audio_raw_data")
raw_data = audio_raw_data.get_raw_data()
This should create an object for audioRawData and allow you to access the raw audio data.