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.
  1. 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.

Support

  • For specific issues or bugs, please contact the Audio development support team.

API Reference

Classes

  • AudioAttributes — Determines the audio attributes to build the audio playback stream with, affects things like content type, usage, and flags.
  • AudioConfig — Determines the audio configuration to build the audio playback stream with, affects things like audio sample rate, and format.
  • AudioConfigAttr — AudioConfig to retrieve the supported configurations
  • AudioDeviceInfo — Data type that contains the description of an audio device
  • AudioFocusAttributes — AudioFocusAttributes used while requesting AudioFocus
  • AudioFocusManager — Audio Focus Manager allows the creation and destruction of Audio Focus Sessions.
  • AudioFocusSession — Audio Focus Session allows audio focus management such as requesting audio focus and
  • AudioManager — Audio Manager allows audio management such as volume adjustment and mute control.
  • AudioPlaybackStream — Audio Playback Stream allows for control of playback streams such as pausing,
  • AudioPlaybackStreamBuilder — Audio Playback Stream Builder allows for the configuration, creation, and destruction
  • AudioRecordStream
  • AudioRecordStreamBuilder — ## Required Privileges
  • AudioTheme — AudioTheme object
  • SinkPolicies — SinkPolicies object

Enumerations


Last modified on July 22, 2026