onProcessCapturedAudioData property

void Function(Uint8List data, int dataLength, int sampleRate, int channel, double timeStamp)? onProcessCapturedAudioData
getter/setter pair

Custom audio processing local captured PCM audio frame callback.

Available: Since 1.0.0 Description: In this callback, you can receive the PCM audio frames captured locally after used headphone monitor. Developers can modify the audio frame data, as well as the audio channels and sample rate. The timestamp can be used for data synchronization, such as lyrics, etc. @param byteArray Audio data in PCM format. @param dataLength Length of the data. @param sampleRate Parameters of the audio sampleRate. @param channel Parameters of the audio channel. @param timeStamp The audio frame timestamp, starting from 0 when capture is started, the unit is milliseconds.

Implementation

static void Function(Uint8List data, int dataLength, int sampleRate,
    int channel, double timeStamp)? onProcessCapturedAudioData;