/pps/services/audio/types/

This directory contains all the supported audio types

Publishers
Audio Manager
Subscribers
Any app

Overview

The Audio Manager publishes the status of each audio type for concurrent audio playback to the /pps/services/audio/types/ directory. By monitoring these objects, an application may take certain actions when an event occurs. For example, a multimedia application may decide to pause when it is being muted by a higher-priority audio source.

Supported audio types

Audio type Description
alert Notifiers, such as calendar events, email, SMS, etc.
default Any unclassified audio stream.
inputfeedback Used for keyboard clicks.
multimedia Used by media player applications.
pushtotalk Used to denote streams related to push-to-talk use cases.
ringtone Used for playback of ringtones when an incoming phone call occurs.
soundeffect Sound effects that can never be attenuated, such as the camera click.
texttospeech Text-to-speech services.
videochat Used by the video chat client, this type isn't covered by the voice type because of a difference in automatic routing policy.
voice Voiceband-related streams and certain telephony items (cellular or VoIP).
voicerecognition Voice-recognition services such as VAD (Voice-Activated Dialing).
voicerecording Used for voice-recording services.
voicetones DTMF and call-progress tones, but can also be used to play back nontone-based audio during phone calls.

Audio type attributes

Each audio type object has the following attributes:

Attribute Data type Description
active_pid String The process ID of the application that is currently playing.
Note: This is used only in the multimedia type.
attenuated Boolean Indicates whether the audio type is being attenuated.
muted Boolean Indicates whether this audio type is being muted.
muted_by String The audio type (e.g., ringtone) that causes this audio type to be muted.
muted_by_pid String The process ID of the application that is muting this audio type.