com.aliyun.svideosdk.common.callback.recorder

## Interface OnAudioCallBack

-     public interface OnAudioCallBack

  An interface that defines the audio callback.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onAudioDataBack(byte[] data, int length)` The callback that outputs audio data in 44.1 kHz 16-bit mono PCM format.
    `void` | `onAudioDataBackInPreview(byte[] data, int length)` The callback that outputs audio data in 44.1 kHz 16-bit mono PCM format.

- - ### Method Detail

    - #### onAudioDataBack

          void onAudioDataBack(byte[] data,
                               int length)

      The callback that outputs audio data in 44.1 kHz 16-bit mono PCM format. After call `AliyunIRecorder.startRecording()` will invoke the callback.
      Parameters:
        `data` - The audio data packet.
        `length` - The data length.

    - #### onAudioDataBackInPreview

          void onAudioDataBackInPreview(byte[] data,
                                        int length)

      The callback that outputs audio data in 44.1 kHz 16-bit mono PCM format. After call `AliyunIRecorder.startPreview()` will invoke the callback，and will stop callback after call `AliyunIRecorder.startRecording()` Added in 3.19.0
      Parameters:
        `data` - The audio data packet.
        `length` - The data length.