Package im.zego.zegoexpress.entity
Class ZegoCustomAudioProcessConfig
- java.lang.Object
-
- im.zego.zegoexpress.entity.ZegoCustomAudioProcessConfig
-
public class ZegoCustomAudioProcessConfig extends java.lang.Object
Customize the audio processing configuration object. Including custom audio acquisition type, sampling rate, channel number, sampling number and other parameters
-
-
Field Summary
Fields Modifier and Type Field Description ZegoAudioChannel
channel
Number of sound channels, the expected number of sound channels for input data of the audio pre-processing module in App.ZegoAudioSampleRate
sampleRate
Sampling rate, the sampling rate of the input data expected by the audio pre-processing module in App.int
samples
The number of samples required to encode a frame; if samples = 0, the SDK will use the internal sample number, and the SDK will pass the audio data to the external pre-processing module.
-
Constructor Summary
Constructors Constructor Description ZegoCustomAudioProcessConfig()
-
-
-
Field Detail
-
sampleRate
public ZegoAudioSampleRate sampleRate
Sampling rate, the sampling rate of the input data expected by the audio pre-processing module in App. If 0, the default is the SDK internal sampling rate.
-
channel
public ZegoAudioChannel channel
Number of sound channels, the expected number of sound channels for input data of the audio pre-processing module in App. If 0, the default is the number of internal channels in the SDK
-
samples
public int samples
The number of samples required to encode a frame; if samples = 0, the SDK will use the internal sample number, and the SDK will pass the audio data to the external pre-processing module. If the samples! = 0 (the effective value of samples is between [160, 2048]), and the SDK will send audio data to the external preprocessing module that sets the length of sample number.
-
-