Builder

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Delay in milliseconds until the player abandons audio focus after playing all queued voice instructions. Defaults to 0.

Link copied to clipboard

Checks if the specified language as represented by the Locale is available and supported by TTS. Defaults to True

Link copied to clipboard

Specifies what source is playing (music, movie, speech, sonification, unknown). Defaults to AudioAttributes.CONTENT_TYPE_MUSIC See AudioAttributes for a list of content types.

Link copied to clipboard

Specifies which stream will be used for playing Defaults to AudioManager.STREAM_MUSIC See AudioManager for a list of stream types. Supports pre Oreo and above implementations

Link copied to clipboard

Specifies which stream will be used for playing TTS Defaults to AudioManager.STREAM_MUSIC See AudioManager for a list of stream types. Supports pre Oreo and above implementations

Link copied to clipboard

Specifies which stream will be used for playing Defaults to AudioManager.STREAM_MUSIC See AudioManager for a list of stream types. Supports pre Oreo and above implementations

Link copied to clipboard

Specifies attributes as inferred from the legacy stream types. Defaults to False Warning: When this value is true any other attributes such as usage, content type, flags or haptic control will be ignored