Added in API level 1

AudioEncoder


class AudioEncoder
kotlin.Any
   ↳ android.media.MediaRecorder.AudioEncoder

Defines the audio encoding. These constants are used with MediaRecorder#setAudioEncoder(int).

Summary

Constants
static Int

AAC Low Complexity (AAC-LC) audio codec

static Int

Enhanced Low Delay AAC (AAC-ELD) audio codec

static Int

AMR (Narrowband) audio codec

static Int

AMR (Wideband) audio codec

static Int

static Int

High Efficiency AAC (HE-AAC) audio codec

static Int

Opus audio codec

static Int

Ogg Vorbis audio codec (Support is optional)

Constants

AAC

Added in API level 10
static val AAC: Int

AAC Low Complexity (AAC-LC) audio codec

Value: 3

AAC_ELD

Added in API level 16
static val AAC_ELD: Int

Enhanced Low Delay AAC (AAC-ELD) audio codec

Value: 5

AMR_NB

Added in API level 1
static val AMR_NB: Int

AMR (Narrowband) audio codec

Value: 1

AMR_WB

Added in API level 10
static val AMR_WB: Int

AMR (Wideband) audio codec

Value: 2

DEFAULT

Added in API level 1
static val DEFAULT: Int
Value: 0

HE_AAC

Added in API level 16
static val HE_AAC: Int

High Efficiency AAC (HE-AAC) audio codec

Value: 4

OPUS

Added in API level 29
static val OPUS: Int

Opus audio codec

Value: 7

VORBIS

Added in API level 21
static val VORBIS: Int

Ogg Vorbis audio codec (Support is optional)

Value: 6