Interface MicrophoneAudioTrackInitConfig

Configurations for the audio track from the audio captured by a microphone. Set these configurations when calling AgoraRTC.createMicrophoneAudioTrack.

Hierarchy

  • MicrophoneAudioTrackInitConfig

Index

Properties

Optional AEC

AEC: undefined | false | true

Whether to enable automatic noise suppression:

  • true: Enable automatic noise suppression.
  • false: Do not enable automatic noise suppression.

Optional AGC

AGC: undefined | false | true

Whether to enable audio gain control:

  • true: Enable audio gain control.
  • false: Do not enable audio gain control.

Optional ANS

ANS: undefined | false | true

Whether to enable automatic noise suppression:

  • true: Enable automatic noise suppression.
  • false: Do not automatic noise suppression.

Optional encoderConfig

The audio encoder configurations.

You can set the audio encoder configurations in either of the following ways:

Optional microphoneId

microphoneId: undefined | string

Specifies the microphone ID.

You can get a list of the available microphones by calling AgoraRTC.getMicrophones.