Builder
Build a new VoiceInstructionsPlayerOptions
Functions
Delay in milliseconds until the player abandons audio focus after playing all queued voice instructions. Defaults to 0.
Build the VoiceInstructionsPlayerOptions
Checks if the specified language as represented by the Locale is available and supported by TTS. Defaults to True
Specifies what source is playing (music, movie, speech, sonification, unknown). Defaults to AudioAttributes.CONTENT_TYPE_MUSIC See AudioAttributes for a list of content types.
Specifies how audio focus will be requested. Defaults to AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK Valid values for focus requests are AudioManager.AUDIOFOCUS_GAIN, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK and AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE.
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
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
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
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