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
The Vega Audio Interface API provides functionality for managing audio in apps. It consists of several key components:
  • Audio Manager: Handles system-level audio controls like volume, mute, and device management.
  • Audio Playback: Enables audio stream playback with configurable attributes.
  • Audio Focus Management: Manages audio focus for different audio streams.
The API is designed to work with React Native for Vega apps and provides a foundation for building audio-enabled apps with features such as:
  • Volume and mute control for different audio types
  • Audio device management
  • System sound management
  • Audio focus handling
  • Audio stream configuration and management

Get started

Setup

  1. Add the following library dependency to the dependencies section of your package.json file.
  2. Add the following privilege and services request in your manifest.toml.
For more information on the needs section of the manifest file, see Manifest needs Section.

Usage

Import the KeplerAudioInterface turbo module into your project.

Audio

Manage Audio Volume
Create and Manage audio playback
Managing audio focus

Event Observers

Audio Manager events
Playback a stream
Audio focus

Troubleshooting

  1. Permission issues:
    1. Error: No Permission exception
    2. Solution: Make sure that you have declared the required privileges in your manifest.toml.
  2. AudioManager not created:
    1. Error: getAudioManager() returns undefined
    2. Solution: Make sure that you have properly set up the KeplerAudioInterface Turbo Module is properly in your app environment.
  3. Invalid Observer or callback:
    1. Error: “not invoking Callback”
    2. Solution: Make sure that you are correctly subscribing to the Observers.
  4. Unsubscription failures:
    1. Error: Unsubscribe rejection
    2. Solution: Check that you’re using the correct observer object and that it isn’t already being used to unsubscribe.

Additional resources

Documents

Enumerations

Classes


Last modified on February 19, 2026