Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Audio Focus Manager allows the creation and destruction of Audio Focus Sessions. Specifically, it prevent multiple audio sources from playing at the same time by letting one audio source play normally while lowering the volume (also known as ducking), pausing, or stopping other audio sources.
  • TOC

Required services

The API requires declaration of the system audio service:

Types Used

Refer to Audio core types
  • AudioFocusStatus

Static Methods

AudioFocusManager.createAudioFocusSessionAsync()

Description

Creates a new audio focus session.

Return Value

Returns a promise resolving to an AudioFocusSession object.

Example code

AudioFocusManager.destroyAudioFocusSessionAsync(sessionObject)

Description

Destroys the Audio Focus Session specified in the parameter.

Return Value

Returns a promise that resolves to a AudioFocusStatus type.

Parameters

Example code

AudioFocusManager.getDefaultAudioFocusSessionAsync()

Description

Gets the default audio focus session. The default audio focus session is a singleton instance that is defaulted to if an audio stream does not link an audio focus session explicitly.

Return Value

Returns a promise resolving to the default AudioFocusSession object.

Example code


Last modified on October 2, 2025