Create sound playing preferences.
Preferences configuration
Which audio stream to use
Delay granting audio focus in milliseconds (useful for Bluetooth-as-phone-call output)
Maximum play time in milliseconds. Range: 0..255000 ms. Use 0 for no limit
Playback volume (0..10)
The audio stream used for playback.
Delay before requesting audio focus when using certain outputs (in milliseconds).
Maximum playback time in milliseconds.
Range: 0..255000 ms (255 seconds). Use 0 for no limit.
The playback volume (0..10).
Default: 5
Hash code calculation
InternalSerializes this instance to a JSON-compatible object.
Used internally, not intended for direct use by consumers. The object structure may change without notice.
StaticfromInternalDeserializes a JSON-compatible object to create an instance.
Used internally, not intended for direct use by consumers. The expected object structure may change without notice.
Preferences controlling how the SDK plays sounds and TTS.
Use this object to configure per-severity sound settings (volume, maximum playback time, audio stream type and focus delay).
Modifications to an instance of this class are not applied automatically. To apply changes, call SoundPlayingService.setSoundPlayingPreferences.
See