MapboxVoiceInstructionsPlayer   
    class MapboxVoiceInstructionsPlayer @JvmOverloads constructor(    context: Context,     accessToken: String,     language: String,     options: VoiceInstructionsPlayerOptions = VoiceInstructionsPlayerOptions.Builder()
        .build(),     audioFocusDelegate: AsyncAudioFocusDelegate = buildAndroidAudioFocus(context, options))
Content copied to clipboard
Hybrid implementation of MapboxVoiceInstructionsPlayer combining VoiceInstructionsTextPlayer and VoiceInstructionsFilePlayer speech players.
Constructors
Link copied to clipboard
                fun MapboxVoiceInstructionsPlayer(    context: Context,     accessToken: String,     language: String,     options: VoiceInstructionsPlayerOptions = VoiceInstructionsPlayerOptions.Builder()
            .build(),     audioFocusDelegate: AudioFocusDelegate)
Content copied to clipboard
Link copied to clipboard
                fun MapboxVoiceInstructionsPlayer(    context: Context,     accessToken: String,     language: String,     options: VoiceInstructionsPlayerOptions = VoiceInstructionsPlayerOptions.Builder()
        .build(),     audioFocusDelegate: AsyncAudioFocusDelegate = buildAndroidAudioFocus(context, options))
Content copied to clipboard
Functions
Link copied to clipboard
                fun play(announcement: SpeechAnnouncement, consumer: MapboxNavigationConsumer<SpeechAnnouncement>)
Content copied to clipboard
Given SpeechAnnouncement the method will play the voice instruction. If a voice instruction is already playing or other announcement are already queued, the given voice instruction will be queued to play after.
Link copied to clipboard
                The method will set the volume to the specified level from SpeechVolume. Volume is specified as a float ranging from 0 to 1 where 0 is silence, and 1 is the maximum volume (the default behavior).