System Audio Interaction

Integrate system audio into your app.

Overview

To interact with system audio, use the AVAudioSession class to:

  • Communicate to the system how you intend to use audio in your app.

  • Activate your app’s audio session.

  • Request user permission to record audio.

  • Subscribe and respond to important audio session notifications about events like audio interruptions and route changes.

  • Perform advanced audio device configuration, such as setting sample rate, I/O buffer duration, and number of channels.

Topics

Using an Audio Session

AVAudioSession

An object that communicates to the system how you intend to use audio in your app.

Entitlements

Inter-App Audio Entitlement

A Boolean value that indicates whether the app may exchange audio with other Inter-App Audio-enabled apps.

Key: inter-app-audio

See Also

Audio

Audio Track Engineering

Play, record, mix, and process audio.