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

Constructors

new AudioManager()

new AudioManager(): AudioManager

Returns

AudioManager

Methods

allocateCustomAudioEffectSessionAsync()

static allocateCustomAudioEffectSessionAsync(): Promise<number> Creates a unique session ID for custom audio effects. This ID can be used to associate audio effects with specific playback or record streams.

Returns

Promise<number> A promise that resolves to:
  • Positive number: New unique session ID
Rejects with:
  • STATUS_NO_MEMORY (-1): Failed to allocate session
  • STATUS_DEAD_OBJECT (-5): Server connection lost

areSystemSoundsEnabledAsync()

static areSystemSoundsEnabledAsync(): Promise<boolean> Checks if system sounds are currently enabled.

Returns

Promise<boolean> A promise that resolves to:
  • true: System sounds are enabled
  • false: System sounds are disabled
Rejects with:
  • STATUS_DEAD_OBJECT (-5): Server connection lost

Last modified on October 2, 2025