public final class MediaRecorder.AudioSource extends Object
MediaRecorder.setAudioSource(int)
or
AudioRecord.Builder.setAudioSource(int)
.Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_SOURCE_INVALID |
static int |
CAMCORDER
Microphone audio source with same orientation as camera if available, the main
device microphone otherwise
|
static int |
DEFAULT
Default audio source
|
static int |
HOTWORD
Audio source for preemptible, low-priority software hotword detection
It presents the same gain and pre processing tuning as
VOICE_RECOGNITION . |
static int |
MIC
Microphone audio source
|
static int |
RADIO_TUNER
Audio source for capturing broadcast radio tuner output.
|
static int |
REMOTE_SUBMIX
Audio source for a submix of audio streams to be presented remotely.
|
static int |
UNPROCESSED
Microphone audio source tuned for unprocessed (raw) sound if available, behaves like
DEFAULT otherwise. |
static int |
VOICE_CALL
Voice call uplink + downlink audio source
Capturing from
VOICE_CALL source requires the
android.Manifest.permission#CAPTURE_AUDIO_OUTPUT permission. |
static int |
VOICE_COMMUNICATION
Microphone audio source tuned for voice communications such as VoIP.
|
static int |
VOICE_DOWNLINK
Voice call downlink (Rx) audio source.
|
static int |
VOICE_RECOGNITION
Microphone audio source tuned for voice recognition if available, behaves like
DEFAULT otherwise. |
static int |
VOICE_UPLINK
Voice call uplink (Tx) audio source.
|
public static final int AUDIO_SOURCE_INVALID
public static final int DEFAULT
public static final int MIC
public static final int VOICE_UPLINK
Capturing from VOICE_UPLINK
source requires the
android.Manifest.permission#CAPTURE_AUDIO_OUTPUT
permission.
This permission is reserved for use by system components and is not available to
third-party applications.
public static final int VOICE_DOWNLINK
Capturing from VOICE_DOWNLINK
source requires the
android.Manifest.permission#CAPTURE_AUDIO_OUTPUT
permission.
This permission is reserved for use by system components and is not available to
third-party applications.
public static final int VOICE_CALL
Capturing from VOICE_CALL
source requires the
android.Manifest.permission#CAPTURE_AUDIO_OUTPUT
permission.
This permission is reserved for use by system components and is not available to
third-party applications.
public static final int CAMCORDER
public static final int VOICE_RECOGNITION
DEFAULT
otherwise.public static final int VOICE_COMMUNICATION
DEFAULT
if no voice processing
is applied.public static final int REMOTE_SUBMIX
An application can use this audio source to capture a mix of audio streams that should be transmitted to a remote receiver such as a Wifi display. While recording is active, these audio streams are redirected to the remote submix instead of being played on the device speaker or headset.
Certain streams are excluded from the remote submix, including
AudioManager.STREAM_RING
, AudioManager.STREAM_ALARM
,
and AudioManager.STREAM_NOTIFICATION
. These streams will continue
to be presented locally as usual.
Capturing the remote submix audio requires the
android.Manifest.permission#CAPTURE_AUDIO_OUTPUT
permission.
This permission is reserved for use by system components and is not available to
third-party applications.
public static final int UNPROCESSED
DEFAULT
otherwise.public static final int RADIO_TUNER
public static final int HOTWORD
VOICE_RECOGNITION
.
An application should use this audio source when it wishes to do always-on software hotword detection, while gracefully giving in to any other application that might want to read from the microphone.
This is a hidden audio source.