CustomMicrophoneTrackConfig enum

Defines audio quality presets for microphone audio tracks.

  • These presets control audio bitrate, channel configuration, and overall sound quality.

Encoder Config Reference

Encoder Config Bitrate Auto Gain Echo Cancellation Noise Suppression
SPEECH_LOW_QUALITY 16 kbps TRUE TRUE TRUE
SPEECH_STANDARD 24 kbps TRUE TRUE TRUE
MUSIC_STANDARD 32 kbps FALSE FALSE FALSE
STANDARD_STEREO 64 kbps FALSE FALSE FALSE
HIGH_QUALITY 128 kbps FALSE TRUE FALSE
HIGH_QUALITY_STEREO 192 kbps FALSE FALSE FALSE

Note: If you face issues related to echo, you can use noiseConfig with echoCancellation: true. Echo cancellation attempts to prevent echo effects on a two-way audio connection by reducing or eliminating crosstalk between the user's output device and their input device — for example, filtering out sound produced by the speakers from being captured by the microphone input track.

Example

final audioTrack = await VideoSDK.createMicrophoneAudioTrack(
  encoderConfig: CustomMicrophoneTrackConfig.HIGH_QUALITY,
);
Inheritance
Available extensions

Values

SPEECH_LOW_QUALITY → const CustomMicrophoneTrackConfig

Low-quality speech-optimized audio.

Example

encoderConfig: CustomMicrophoneTrackConfig.SPEECH_LOW_QUALITY
SPEECH_STANDARD → const CustomMicrophoneTrackConfig

Standard-quality speech audio (recommended).

Example

encoderConfig: CustomMicrophoneTrackConfig.SPEECH_STANDARD
MUSIC_STANDARD → const CustomMicrophoneTrackConfig

Standard-quality music audio.

Example

encoderConfig: CustomMicrophoneTrackConfig.MUSIC_STANDARD
STANDARD_STEREO → const CustomMicrophoneTrackConfig

Stereo audio with standard quality.

Example

encoderConfig: CustomMicrophoneTrackConfig.STANDARD_STEREO
HIGH_QUALITY → const CustomMicrophoneTrackConfig

High-quality mono audio.

Example

encoderConfig: CustomMicrophoneTrackConfig.HIGH_QUALITY
HIGH_QUALITY_STEREO → const CustomMicrophoneTrackConfig

High-quality stereo audio.

Example

encoderConfig: CustomMicrophoneTrackConfig.HIGH_QUALITY_STEREO

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<CustomMicrophoneTrackConfig>
A constant List of the values in this enum, in order of their declaration.