public final class

MediaRecorder.AudioSource

extends Object
java.lang.Object
   ↳android.media.MediaRecorder.AudioSource

Class Overview

Defines the audio source. These constants are used with setAudioSource(int).

Summary

Constants
intCAMCORDERMicrophone audio source with same orientation as camera if available, the main device microphone otherwise
intDEFAULT
intMICMicrophone audio source
intVOICE_CALLVoice call uplink + downlink audio source
intVOICE_DOWNLINKVoice call downlink (Rx) audio source
intVOICE_RECOGNITIONMicrophone audio source tuned for voice recognition if available, behaves like DEFAULT otherwise.
intVOICE_UPLINKVoice call uplink (Tx) audio source
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CAMCORDER

Since: API Level 7

Microphone audio source with same orientation as camera if available, the main device microphone otherwise

Constant Value: 5 (0x00000005)

public static final int DEFAULT

Since: API Level 1

Constant Value: 0 (0x00000000)

public static final int MIC

Since: API Level 1

Microphone audio source

Constant Value: 1 (0x00000001)

public static final int VOICE_CALL

Since: API Level 4

Voice call uplink + downlink audio source

Constant Value: 4 (0x00000004)

public static final int VOICE_DOWNLINK

Since: API Level 4

Voice call downlink (Rx) audio source

Constant Value: 3 (0x00000003)

public static final int VOICE_RECOGNITION

Since: API Level 7

Microphone audio source tuned for voice recognition if available, behaves like DEFAULT otherwise.

Constant Value: 6 (0x00000006)

public static final int VOICE_UPLINK

Since: API Level 4

Voice call uplink (Tx) audio source

Constant Value: 2 (0x00000002)