AudioSpectrumData

Represents audio spectrum data.

struct AudioSpectrumData {
  const float* audioSpectrumData;
  int dataLength;
};

Properties

audioSpectrumData
Audio spectrum data. Agora divides the audio frequency into 256 bands and reports the energy value of each band through this parameter. Each energy value ranges from [-300, 1], in dBFS.
dataLength
The length of the audio spectrum data is 256.