VoiceInstructionsPlayerOptions
VoiceInstructionsPlayerOptions.
Types
Build a new VoiceInstructionsPlayerOptions
Properties
Delay in milliseconds until the player abandons audio focus after playing all queued voice instructions. Defaults to 0.
Checks if the specified language as represented by the Locale is available and supported by TTS. Defaults to True
Defines what the sound is and expresses the general category of the content such as movie, speech, or beep/ringtone. The audio framework uses content type information to selectively configure audio post-processing blocks. While supplying the content type is optional, you should include type information whenever the content type is known Defaults to AudioAttributes.CONTENT_TYPE_MUSIC
Defines 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. AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK is used by default.
Defines 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
Defines 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
Defines the context in which the stream is used, providing information about why the sound is playing and what the sound is used for. Usage information is more expressive than a stream type and allows platforms or routing policies to refine volume or routing decisions Defaults to AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE
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.