# Enums > **NOTE** > > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## AudioVolumeType Enumerates the audio stream types. **System capability**: SystemCapability.Multimedia.Audio.Volume | Name | Value | Description | | ---------------------------- | ------ | ---------- | | VOICE_CALL8+ | 0 | Audio stream for voice calls.| | RINGTONE | 2 | Audio stream for ringtones. | | MEDIA | 3 | Audio stream for media purpose. | | ALARM10+ | 4 | Audio stream for alarming. | | ACCESSIBILITY10+ | 5 | Audio stream for accessibility. | | VOICE_ASSISTANT8+ | 9 | Audio stream for voice assistant.| ## InterruptMode9+ Enumerates the audio interruption modes. **Atomic service API**: This API can be used in atomic services since API version 12. **System capability**: SystemCapability.Multimedia.Audio.Interrupt | Name | Value | Description | | ---------------------------- | ------ | ---------- | | SHARE_MODE | 0 | Shared mode.| | INDEPENDENT_MODE | 1 | Independent mode.| ## DeviceFlag Enumerates the audio device flags. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | | ------------------------------- | ------ |---------------------------| | OUTPUT_DEVICES_FLAG | 1 | Output device. | | INPUT_DEVICES_FLAG | 2 | Input device. | | ALL_DEVICES_FLAG | 3 | All devices. | ## DeviceUsage12+ Enumerates the audio device types by usage. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | | ------------------------------- | ------ |---------------------------| | MEDIA_OUTPUT_DEVICES | 1 | Media output device.| | MEDIA_INPUT_DEVICES | 2 | Media input device.| | ALL_MEDIA_DEVICES | 3 | All media devices.| | CALL_OUTPUT_DEVICES | 4 | Call output device.| | CALL_INPUT_DEVICES | 8 | Call input device.| | ALL_CALL_DEVICES | 12 | All call devices.| ## DeviceRole Enumerates the device roles. **Atomic service API**: This API can be used in atomic services since API version 12. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | | ------------- | ------ | -------------- | | INPUT_DEVICE | 1 | Input role.| | OUTPUT_DEVICE | 2 | Output role.| ## DeviceType Enumerates the device types. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | | ---------------------| ------ | --------------------------------------------------------- | | INVALID | 0 | Invalid device.
**Atomic service API**: This API can be used in atomic services since API version 12.| | EARPIECE | 1 | Earpiece.
**Atomic service API**: This API can be used in atomic services since API version 12.| | SPEAKER | 2 | Speaker.
**Atomic service API**: This API can be used in atomic services since API version 12.| | WIRED_HEADSET | 3 | Wired headset with a microphone.
**Atomic service API**: This API can be used in atomic services since API version 12.| | WIRED_HEADPHONES | 4 | Wired headset without a microphone.
**Atomic service API**: This API can be used in atomic services since API version 12.| | BLUETOOTH_SCO | 7 | Bluetooth device using Synchronous Connection Oriented (SCO) links.
**Atomic service API**: This API can be used in atomic services since API version 12.| | BLUETOOTH_A2DP | 8 | Bluetooth device using Advanced Audio Distribution Profile (A2DP) links.
**Atomic service API**: This API can be used in atomic services since API version 12.| | MIC | 15 | Microphone.
**Atomic service API**: This API can be used in atomic services since API version 12.| | USB_HEADSET | 22 | USB Type-C headset.
**Atomic service API**: This API can be used in atomic services since API version 12.| | DISPLAY_PORT12+ | 23 | Display port (DP), which is used to connect to external devices.
**Atomic service API**: This API can be used in atomic services since API version 12.| | REMOTE_CAST12+ | 24 | Remote cast device.
**Atomic service API**: This API can be used in atomic services since API version 12.| | USB_DEVICE18+ | 25 | USB device (excluding USB headsets). | | HDMI19+ | 27 | HDMI device (such as HDMI, ARC, and eARC). | | LINE_DIGITAL19+ | 28 | Wired digital device (such as S/PDIF) | | REMOTE_DAUDIO18+ | 29 | Distributed device.
**Atomic service API**: This API can be used in atomic services since API version 18.| | NEARLINK20+ | 31 | NearLink device.| | DEFAULT9+ | 1000 | Default device type.
**Atomic service API**: This API can be used in atomic services since API version 12.| ## CommunicationDeviceType9+ Enumerates the device types used for communication. **System capability**: SystemCapability.Multimedia.Audio.Communication | Name | Value | Description | | ------------- | ------ | -------------| | SPEAKER | 2 | Speaker. | ## AudioRingMode Enumerates the audio ring modes. **System capability**: SystemCapability.Multimedia.Audio.Communication | Name | Value | Description | | ------------------- | ------ | ---------- | | RINGER_MODE_SILENT | 0 | Silent mode.| | RINGER_MODE_VIBRATE | 1 | Vibration mode.| | RINGER_MODE_NORMAL | 2 | Normal mode.| ## AudioSampleFormat8+ Enumerates the audio sample formats. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | ---------------------------------- | ------ | -------------------------- | | SAMPLE_FORMAT_INVALID | -1 | Invalid format. | | SAMPLE_FORMAT_U8 | 0 | Unsigned 8-bit integer. | | SAMPLE_FORMAT_S16LE | 1 | Signed 16-bit integer, little endian.| | SAMPLE_FORMAT_S24LE | 2 | Signed 24-bit integer, little endian.
Due to system restrictions, only some devices support this sampling format.| | SAMPLE_FORMAT_S32LE | 3 | Signed 32-bit integer, little endian.
Due to system restrictions, only some devices support this sampling format.| | SAMPLE_FORMAT_F32LE9+ | 4 | Signed 32-bit floating point number, little endian.
Due to system restrictions, only some devices support this sampling format.| ## AudioErrors9+ Enumerates the error codes available for audio management. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | ---------------------| --------| ----------------- | | ERROR_INVALID_PARAM | 6800101 | Invalid parameter. | | ERROR_NO_MEMORY | 6800102 | Memory allocation failure. | | ERROR_ILLEGAL_STATE | 6800103 | Unsupported state. | | ERROR_UNSUPPORTED | 6800104 | Unsupported parameter value. | | ERROR_TIMEOUT | 6800105 | Processing timeout. | | ERROR_STREAM_LIMIT | 6800201 | Too many audio streams.| | ERROR_SYSTEM | 6800301 | System error. | ## AudioChannel8+ Enumerates the audio channels. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | --------- | -------- |------| | CHANNEL_1 | 1 | One audio channel (mono).| | CHANNEL_2 | 2 | Two audio channels (stereo).| | CHANNEL_311+ | 3 | Three audio channels.| | CHANNEL_411+ | 4 | Four audio channels.| | CHANNEL_511+ | 5 | Five audio channels.| | CHANNEL_611+ | 6 | Six audio channels.| | CHANNEL_711+ | 7 | Seven audio channels.| | CHANNEL_811+ | 8 | Eight audio channels.| | CHANNEL_911+ | 9 | Nine audio channels.| | CHANNEL_1011+ | 10 | Ten audio channels.| | CHANNEL_1211+ | 12 | Twelve audio channels.| | CHANNEL_1411+ | 14 | Fourteen audio channels.| | CHANNEL_1611+ | 16 | Sixteen audio channels.| ## AudioSamplingRate8+ Enumerates the audio sampling rates. The sampling rates supported vary according to the device in use. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | ----------------- | ------ | --------------- | | SAMPLE_RATE_8000 | 8000 | The sampling rate is 8000. | | SAMPLE_RATE_11025 | 11025 | The sampling rate is 11025.| | SAMPLE_RATE_12000 | 12000 | The sampling rate is 12000.| | SAMPLE_RATE_16000 | 16000 | The sampling rate is 16000.| | SAMPLE_RATE_22050 | 22050 | The sampling rate is 22050.| | SAMPLE_RATE_24000 | 24000 | The sampling rate is 24000.| | SAMPLE_RATE_32000 | 32000 | The sampling rate is 32000.| | SAMPLE_RATE_44100 | 44100 | The sampling rate is 44100.| | SAMPLE_RATE_48000 | 48000 | The sampling rate is 48000.| | SAMPLE_RATE_64000 | 64000 | The sampling rate is 64000.| | SAMPLE_RATE_8820012+ | 88200 | The sampling rate is 88200.| | SAMPLE_RATE_96000 | 96000 | The sampling rate is 96000.| | SAMPLE_RATE_17640012+ | 176400 | The sampling rate is 176400.| | SAMPLE_RATE_19200012+ | 192000 | The sampling rate is 192000.| ## AudioEncodingType8+ Enumerates the audio encoding types. **Atomic service API**: This API can be used in atomic services since API version 12. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | --------------------- | ------ | --------- | | ENCODING_TYPE_INVALID | -1 | Invalid. | | ENCODING_TYPE_RAW | 0 | PCM encoding.| ## AudioChannelLayout11+ Enumerates the audio channel layouts of audio files. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | ------------------------------ | ---------------- | --------------------------------------------- | | CH_LAYOUT_UNKNOWN | 0x0 | Unknown. | | CH_LAYOUT_MONO | 0x4 | Mono. | | CH_LAYOUT_STEREO | 0x3 | Stereo. | | CH_LAYOUT_STEREO_DOWNMIX | 0x60000000 | Stereo downmix. | | CH_LAYOUT_2POINT1 | 0xB | 2.1. | | CH_LAYOUT_3POINT0 | 0x103 | 3.0. | | CH_LAYOUT_SURROUND | 0x7 | Surround. | | CH_LAYOUT_3POINT1 | 0xF | 3.1. | | CH_LAYOUT_4POINT0 | 0x107 | 4.0. | | CH_LAYOUT_QUAD | 0x33 | Quad. | | CH_LAYOUT_QUAD_SIDE | 0x603 | Quad side. | | CH_LAYOUT_2POINT0POINT2 | 0x3000000003 | 2.0.2. | | CH_LAYOUT_AMB_ORDER1_ACN_N3D | 0x100000000001 | First-order FOA file in ACN_N3D (ITU standards). | | CH_LAYOUT_AMB_ORDER1_ACN_SN3D | 0x100000001001 | First-order FOA file in ACN_SN3D (ITU standards).| | CH_LAYOUT_AMB_ORDER1_FUMA | 0x100000000101 | First-order FOA file in FUMA (ITU standards). | | CH_LAYOUT_4POINT1 | 0x10F | 4.1. | | CH_LAYOUT_5POINT0 | 0x607 | 5.0. | | CH_LAYOUT_5POINT0_BACK | 0x37 | 5.0 back. | | CH_LAYOUT_2POINT1POINT2 | 0x300000000B | 2.1.2. | | CH_LAYOUT_3POINT0POINT2 | 0x3000000007 | 3.0.2. | | CH_LAYOUT_5POINT1 | 0x60F | 5.1. | | CH_LAYOUT_5POINT1_BACK | 0x3F | 5.1 back. | | CH_LAYOUT_6POINT0 | 0x707 | 6.0. | | CH_LAYOUT_HEXAGONAL | 0x137 | Hexagonal. | | CH_LAYOUT_3POINT1POINT2 | 0x500F | 3.1.2. | | CH_LAYOUT_6POINT0_FRONT | 0x6C3 | 6.0 front. | | CH_LAYOUT_6POINT1 | 0x70F | 6.1. | | CH_LAYOUT_6POINT1_BACK | 0x13F | 6.1 back. | | CH_LAYOUT_6POINT1_FRONT | 0x6CB | 6.1 front. | | CH_LAYOUT_7POINT0 | 0x637 | 7.0. | | CH_LAYOUT_7POINT0_FRONT | 0x6C7 | 7.0 front. | | CH_LAYOUT_7POINT1 | 0x63F | 7.1. | | CH_LAYOUT_OCTAGONAL | 0x737 | Octagonal. | | CH_LAYOUT_5POINT1POINT2 | 0x300000060F | 5.1.2. | | CH_LAYOUT_7POINT1_WIDE | 0x6CF | 7.1 wide. | | CH_LAYOUT_7POINT1_WIDE_BACK | 0xFF | 7.1 wide back. | | CH_LAYOUT_AMB_ORDER2_ACN_N3D | 0x100000000002 | Second-order HOA file in ACN_N3D (ITU standards). | | CH_LAYOUT_AMB_ORDER2_ACN_SN3D | 0x100000001002 | Second-order HOA file in ACN_SN3D (ITU standards).| | CH_LAYOUT_AMB_ORDER2_FUMA | 0x100000000102 | Second-order HOA file in FUMA (ITU standards). | | CH_LAYOUT_5POINT1POINT4 | 0x2D60F | 5.1.4. | | CH_LAYOUT_7POINT1POINT2 | 0x300000063F | 7.1.2. | | CH_LAYOUT_7POINT1POINT4 | 0x2D63F | 7.1.4. | | CH_LAYOUT_10POINT2 | 0x180005737 | 10.2. | | CH_LAYOUT_9POINT1POINT4 | 0x18002D63F | 9.1.4. | | CH_LAYOUT_9POINT1POINT6 | 0x318002D63F | 9.1.6. | | CH_LAYOUT_HEXADECAGONAL | 0x18003F737 | Hexadecagonal. | | CH_LAYOUT_AMB_ORDER3_ACN_N3D | 0x100000000003 | Third-order HOA file in ACN_N3D (ITU standards). | | CH_LAYOUT_AMB_ORDER3_ACN_SN3D | 0x100000001003 | Third-order HOA file in ACN_SN3D (ITU standards).| | CH_LAYOUT_AMB_ORDER3_FUMA | 0x100000000103 | Third-order HOA file in FUMA (ITU standards). | ## StreamUsage Enumerates the audio stream usage types. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | ------------------------------------------| ------ |--------------------------------------------------------------------------------| | STREAM_USAGE_UNKNOWN | 0 | Unknown content.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_MEDIA(deprecated) | 1 | Media.
This enumerated value is supported since API version 7 and deprecated since API version 10. You are advised to use **STREAM_USAGE_MUSIC**, **STREAM_USAGE_MOVIE**, **STREAM_USAGE_GAME**, or **STREAM_USAGE_AUDIOBOOK** instead.| | STREAM_USAGE_MUSIC10+ | 1 | Music.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_VOICE_COMMUNICATION | 2 | VoIP voice call.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_VOICE_ASSISTANT9+ | 3 | Voice assistant.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_ALARM10+ | 4 | Audio stream for alarming.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_VOICE_MESSAGE10+ | 5 | Voice message.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_NOTIFICATION_RINGTONE(deprecated) | 6 | Notification tone.
This enumerated value is supported since API version 7 and deprecated since API version 10. You are advised to use **STREAM_USAGE_RINGTONE** instead.| | STREAM_USAGE_RINGTONE10+ | 6 | Ringtone.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_NOTIFICATION10+ | 7 | Notification.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_ACCESSIBILITY10+ | 8 | Accessibility.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_MOVIE10+ | 10 | Movie or video.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_GAME10+ | 11 | Gaming.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_AUDIOBOOK10+ | 12 | Audiobooks (including crosstalks and storytelling), news radio, and podcasts.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_NAVIGATION10+ | 13 | Navigation.
**Atomic service API**: This API can be used in atomic services since API version 12.| | STREAM_USAGE_VIDEO_COMMUNICATION12+ | 17 | VoIP video call.
**Atomic service API**: This API can be used in atomic services since API version 12.| ## AudioState8+ Enumerates the audio states. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | -------------- | ------ | ---------------- | | STATE_INVALID | -1 | Invalid state. | | STATE_NEW | 0 | Creating instance state.| | STATE_PREPARED | 1 | Prepared. | | STATE_RUNNING | 2 | Running.| | STATE_STOPPED | 3 | Stopped. | | STATE_RELEASED | 4 | Released. | | STATE_PAUSED | 5 | Paused. | ## AudioEffectMode10+ Enumerates the audio effect modes. **Atomic service API**: This API can be used in atomic services since API version 12. **System capability**: SystemCapability.Multimedia.Audio.Renderer | Name | Value | Description | | ------------------ | ------ | ---------- | | EFFECT_NONE | 0 | The audio effect is disabled.| | EFFECT_DEFAULT | 1 | The default audio effect is used.| ## AudioRendererRate8+ Enumerates the audio renderer rates. **System capability**: SystemCapability.Multimedia.Audio.Renderer | Name | Value | Description | | ------------------ | ------ | ---------- | | RENDER_RATE_NORMAL | 0 | Normal rate.| | RENDER_RATE_DOUBLE | 1 | Double rate. | | RENDER_RATE_HALF | 2 | 0.5x rate. | ## InterruptType Enumerates the audio interruption types. **Atomic service API**: This API can be used in atomic services since API version 12. **System capability**: SystemCapability.Multimedia.Audio.Renderer | Name | Value | Description | | -------------------- | ------ | ---------------------- | | INTERRUPT_TYPE_BEGIN | 1 | Audio interruption started.| | INTERRUPT_TYPE_END | 2 | Audio interruption ended.| ## InterruptForceType9+ Enumerates the types of force that causes audio interruption. The force type is obtained when an [InterruptEvent](arkts-apis-audio-i.md#interruptevent9) is received. This type specifies whether audio interruption is forcibly performed by the system. The operation information (such as audio pause or stop) can be obtained through [InterruptHint](#interrupthint). For details about the audio interruption strategy, see [Introduction to Audio Focus and Audio Sessions](../../media/audio/audio-playback-concurrency.md). **Atomic service API**: This API can be used in atomic services since API version 12. **System capability**: SystemCapability.Multimedia.Audio.Renderer | Name | Value | Description | | --------------- | ------ | ------------------------------------ | | INTERRUPT_FORCE | 0 | The operation is forcibly performed by the system. | | INTERRUPT_SHARE | 1 | The operation will not be performed by the system. [InterruptHint](#interrupthint) is used to provide recommended operations for the application, and the application can determine the next processing mode.| ## InterruptHint Enumerates the hints provided along with audio interruption. The hint is obtained when an [InterruptEvent](arkts-apis-audio-i.md#interruptevent9) is received. The hint specifies the operation (such as audio pause or volume adjustment) to be performed on audio streams based on the focus strategy. You can determine whether the operation is forcibly performed by the system based on [InterruptForceType](#interruptforcetype9) in **InterruptEvent**. For details, see [Introduction to Audio Focus and Audio Sessions](../../media/audio/audio-playback-concurrency.md). **System capability**: SystemCapability.Multimedia.Audio.Renderer | Name | Value | Description | | ---------------------------------- | ------ | -------------------------------------------- | | INTERRUPT_HINT_NONE8+ | 0 | None.
**Atomic service API**: This API can be used in atomic services since API version 12.| | INTERRUPT_HINT_RESUME | 1 | A hint is displayed, indicating that the audio stream is restored. The application can proactively trigger operations related to rendering or recording.
This operation cannot be forcibly performed by the system, and the corresponding [InterruptForceType](#interruptforcetype9) must be **INTERRUPT_SHARE**.
**Atomic service API**: This API can be used in atomic services since API version 12.| | INTERRUPT_HINT_PAUSE | 2 | A hint is displayed, indicating that the audio stream is paused and the audio focus is lost temporarily.
When the audio focus is available, the **INTERRUPT_HINT_RESUME** event is received.
**Atomic service API**: This API can be used in atomic services since API version 12.| | INTERRUPT_HINT_STOP | 3 | A hint is displayed, indicating that the audio stream stops and the audio focus is lost.
**Atomic service API**: This API can be used in atomic services since API version 12.| | INTERRUPT_HINT_DUCK | 4 | A hint is displayed, indicating that audio ducking starts and the audio is played at a lower volume.
**Atomic service API**: This API can be used in atomic services since API version 12.| | INTERRUPT_HINT_UNDUCK8+ | 5 | A hint is displayed, indicating that audio ducking ends and the audio is played at the normal volume.
**Atomic service API**: This API can be used in atomic services since API version 12.| | INTERRUPT_HINT_MUTE20+ | 6 | A hint is displayed, indicating that the audio is muted.| | INTERRUPT_HINT_UNMUTE20+ | 7 | A hint is displayed, indicating that the audio is unmuted. | ## AudioVolumeMode19+ Enumerates the audio volume modes. **System capability**: SystemCapability.Multimedia.Audio.Volume | Name | Value | Description | | -------------- | ------ |--------------| | SYSTEM_GLOBAL | 0 | System-level volume (default mode).| | APP_INDIVIDUAL | 1 | Application-level volume. | ## AudioPrivacyType10+ Enumerates whether an audio stream can be recorded by other applications. **System capability**: SystemCapability.Multimedia.Audio.PlaybackCapture | Name | Value | Description | | -------------------- | ---- | -------------------------------- | | PRIVACY_TYPE_PUBLIC | 0 | The audio stream can be recorded by other applications. | | PRIVACY_TYPE_PRIVATE | 1 | The audio stream cannot be recorded by other applications.| ## ChannelBlendMode11+ Enumerates the audio channel blending modes. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | :------------------------------------------- | :----- | :--------------------- | | MODE_DEFAULT | 0 | No channel mixing. | | MODE_BLEND_LR | 1 | Blends the left and right channels together.| | MODE_ALL_LEFT | 2 | Copies the left channel and applies it to both the left and right channels. | | MODE_ALL_RIGHT | 3 | Copies the right channel and applies it to both the left and right channels. | ## AudioStreamDeviceChangeReason11+ Enumerates the reasons for audio stream device changes. **Atomic service API**: This API can be used in atomic services since API version 12. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | |:------------------------------------------| :----- |:----------------| | REASON_UNKNOWN | 0 | Unknown reason. | | REASON_NEW_DEVICE_AVAILABLE | 1 | A new device is available. | | REASON_OLD_DEVICE_UNAVAILABLE | 2 | The old device is unavailable. When this reason is reported, consider pausing audio playback.| | REASON_OVERRODE | 3 | Forcibly selected.| ## DeviceChangeType Enumerates the device connection statuses. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | | :--------- | :--- | :------------- | | CONNECT | 0 | Connected. | | DISCONNECT | 1 | Disconnected.| ## DeviceBlockStatus13+ Enumerates the blocked statuses of audio devices. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | | :--------- | :--- | :------------- | | UNBLOCKED | 0 | The audio device is not blocked. | | BLOCKED | 1 | The audio device is blocked.| ## SourceType8+ Enumerates the audio source types. | Name | Value | Description | | :------------------------------------------- | :----- | :--------------------- | | SOURCE_TYPE_INVALID | -1 | Invalid audio source.
**System capability**: SystemCapability.Multimedia.Audio.Core | | SOURCE_TYPE_MIC | 0 | Mic source.
**System capability**: SystemCapability.Multimedia.Audio.Core| | SOURCE_TYPE_VOICE_RECOGNITION9+ | 1 | Voice recognition source.
**System capability**: SystemCapability.Multimedia.Audio.Core | | SOURCE_TYPE_PLAYBACK_CAPTURE(deprecated) | 2 | Internal audio recording source.
**System capability**: SystemCapability.Multimedia.Audio.PlaybackCapture
This API is supported since API version 10 and deprecated since API version 12. You are advised to use [AVScreenCapture](../apis-media-kit/capi-avscreencapture.md) instead. | | SOURCE_TYPE_VOICE_COMMUNICATION | 7 | Voice communication source.
**System capability**: SystemCapability.Multimedia.Audio.Core| | SOURCE_TYPE_VOICE_MESSAGE12+ | 10 | Voice message source.
**System capability**: SystemCapability.Multimedia.Audio.Core| | SOURCE_TYPE_CAMCORDER13+ | 13 | Video recording source.
**System capability**: SystemCapability.Multimedia.Audio.Core| | SOURCE_TYPE_UNPROCESSED14+ | 14 | Audio source for raw microphone recording, where the system does not perform any algorithm processing.
**System capability**: SystemCapability.Multimedia.Audio.Core| | SOURCE_TYPE_LIVE20+ | 17 | Audio source in live streaming scenarios.
**System capability**: SystemCapability.Multimedia.Audio.Core| ## AudioScene8+ Enumerates the audio scenes. **System capability**: SystemCapability.Multimedia.Audio.Communication | Name | Value | Description | | :--------------------- | :----- | :-------------------------------------------- | | AUDIO_SCENE_DEFAULT | 0 | Default audio scene. | | AUDIO_SCENE_RINGING12+ | 1 | Normal mode.| | AUDIO_SCENE_PHONE_CALL12+ | 2 | Phone call scene.| | AUDIO_SCENE_VOICE_CHAT | 3 | Voice chat scene. | ## AudioConcurrencyMode12+ Enumerates the audio concurrency modes. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value| Description | | :--------------------- |:--|:--------| | CONCURRENCY_DEFAULT | 0 | Uses the system strategy by default. | | CONCURRENCY_MIX_WITH_OTHERS | 1 | Mixes with other audio streams. | | CONCURRENCY_DUCK_OTHERS | 2 | Ducks other audio streams.| | CONCURRENCY_PAUSE_OTHERS | 3 | Pauses other audio streams.| ## AudioSessionDeactivatedReason12+ Enumerates the reasons for deactivating an audio session. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value| Description | | :--------------------- |:--|:-------| | DEACTIVATED_LOWER_PRIORITY | 0 | The application focus is preempted.| | DEACTIVATED_TIMEOUT | 1 | The audio session times out. | ## AudioDataCallbackResult12+ Enumerates the audio data callback results. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | ---------------------| --------| ----------------- | | INVALID | -1 | The callback data is invalid. | | VALID | 0 | The callback data is valid. | ## ContentType(deprecated) Enumerates the audio content types. > **NOTE** > This API is supported since API version 7 and deprecated since API version 10. You are advised to use [StreamUsage](#streamusage) instead. **System capability**: SystemCapability.Multimedia.Audio.Core | Name | Value | Description | | ---------------------------------- | ------ | ---------- | | CONTENT_TYPE_UNKNOWN | 0 | Unknown content.| | CONTENT_TYPE_SPEECH | 1 | Speech. | | CONTENT_TYPE_MUSIC | 2 | Music. | | CONTENT_TYPE_MOVIE | 3 | Movie. | | CONTENT_TYPE_SONIFICATION | 4 | Notification tone. | | CONTENT_TYPE_RINGTONE8+ | 5 | Ringtone. | ## ActiveDeviceType(deprecated) Enumerates the active device types. > **NOTE** > > This API is supported since API version 7 and deprecated since API version 9. You are advised to use [CommunicationDeviceType](#communicationdevicetype9) instead. **System capability**: SystemCapability.Multimedia.Audio.Device | Name | Value | Description | | ------------- | ------ | ---------------------------------------------------- | | SPEAKER | 2 | Speaker. | | BLUETOOTH_SCO | 7 | Bluetooth device using Synchronous Connection Oriented (SCO) links.| ## InterruptActionType(deprecated) Enumerates the returned event types for audio interruption events. > **NOTE** > > This API is supported since API version 7 and deprecated since API version 9. No substitute is provided. **System capability**: SystemCapability.Multimedia.Audio.Renderer | Name | Value | Description | | -------------- | ------ | ------------------ | | TYPE_ACTIVATED | 0 | Focus gain event.| | TYPE_INTERRUPT | 1 | Audio interruption event.| ## AudioLoopbackMode20+ Enumerates the audio loopback modes. **System capability**: SystemCapability.Multimedia.Audio.Capturer | Name | Value | Description | | -------------- | ------ | ----------------- | | HARDWARE | 0 | Hardware loopback.| ## AudioLoopbackStatus20+ Enumerates the audio loopback statuses. **System capability**: SystemCapability.Multimedia.Audio.Capturer | Name | Value | Description | | ------------------ | ------ | ---------------- | | UNAVAILABLE_DEVICE | -2 | Loopback is unavailable due to issues with the input or output device (for example, changes in the audio output device). | | UNAVAILABLE_SCENE | -1 | Loopback is unavailable due to restrictions in the audio scene (for example, audio focus or low-latency management).| | AVAILABLE_IDLE | 0 | Loopback is available but currently idle. | | AVAILABLE_RUNNING | 1 | Loopback is actively running. |