Added in API level 28

MetricsConstants


class MetricsConstants
kotlin.Any
   ↳ android.media.AudioRecord.MetricsConstants

Summary

Constants
static String

Key to extract the number of channels being recorded in this record track from the AudioRecord#getMetrics return value.

static String

Key to extract the audio data encoding for this track from the AudioRecord#getMetrics return value.

static String

Key to extract the estimated latency through the recording pipeline from the AudioRecord#getMetrics return value.

static String

Key to extract the sink sample rate for this record track in Hz from the AudioRecord#getMetrics return value.

static String

Key to extract the source type for this track from the AudioRecord#getMetrics return value.

Constants

CHANNELS

Added in API level 28
static val CHANNELS: String

Key to extract the number of channels being recorded in this record track from the AudioRecord#getMetrics return value. The value is an int.

Value: "android.media.audiorecord.channels"

ENCODING

Added in API level 28
static val ENCODING: String

Key to extract the audio data encoding for this track from the AudioRecord#getMetrics return value. The value is a String.

Value: "android.media.audiorecord.encoding"

LATENCY

Added in API level 28
Deprecated in API level 29
static val LATENCY: String

Deprecated: Not properly supported in the past.

Key to extract the estimated latency through the recording pipeline from the AudioRecord#getMetrics return value. This is in units of milliseconds. The value is an int.

Value: "android.media.audiorecord.latency"

SAMPLERATE

Added in API level 28
static val SAMPLERATE: String

Key to extract the sink sample rate for this record track in Hz from the AudioRecord#getMetrics return value. The value is an int.

Value: "android.media.audiorecord.samplerate"

SOURCE

Added in API level 28
static val SOURCE: String

Key to extract the source type for this track from the AudioRecord#getMetrics return value. The value is a String.

Value: "android.media.audiorecord.source"