Data object AudioPlaybackSettings
interface struct AudioPlaybackSettings
The AudioPlaybackSettings interface struct offers methods to configure audio
playback for synthesized speech, including stream playback, audio focus,
and audio attributes.
Fields
audioStreamPlayback
Specifies an optional audio stream playback interface, if one is available, that is used for playing back synthesized speech.com.amazon.kepler.audio.IAudioStreamPlayback?— Optional
audioFocusSession
Specifies an optional audio focus session interface for managing audio focus during playback of synthesized speech. Note: If audio stream playback is set, it should contain exactly the same audio focus session id as id of thatcom.amazon.kepler.audio.IAudioFocusSession?— Optional
audioFocusSession instance.
audioFocusAttributes
Specifies an optional interface for setting audio focus attributes for the synthesized speech playback. If it is not set then attributes fromcom.amazon.kepler.audio.IAudioFocusAttributes?— Optional
audioStreamPlayback or audioAttributes
will be used as parameters for audio focus request.
audioAttributes
Specifies an optional interface for audio attributes that will be used to create audio playback stream for synthesized speech ifcom.amazon.kepler.audio.AudioAttributes?— Optional
audioStreamPlayback is not set.
streamDuckingPolicy
Defines the optional stream ducking policy that determines the behavior of the audio stream in response to focus change events and will be used to create audio playback stream for synthesized speech ifcom.amazon.kepler.audio.StreamDuckingPolicy?— Optional
audioStreamPlayback is not set.
