Mapbox Voice Instructions Player
@UiThread()
Content copied to clipboard
Hybrid implementation of MapboxVoiceInstructionsPlayer combining VoiceInstructionsTextPlayer and VoiceInstructionsFilePlayer speech players.
Constructors
MapboxVoiceInstructionsPlayer
Link copied to clipboard
fun MapboxVoiceInstructionsPlayer(context: Context, accessToken: String, language: String, options: VoiceInstructionsPlayerOptions = VoiceInstructionsPlayerOptions.Builder()
.build(), audioFocusDelegate: AudioFocusDelegate)
Content copied to clipboard
MapboxVoiceInstructionsPlayer
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Functions
play
Link copied to clipboard
fun play(announcement: SpeechAnnouncement, consumer: MapboxNavigationConsumer<SpeechAnnouncement>)
Content copied to clipboard
Given SpeechAnnouncement the method will play the voice instruction.
volume
Link copied to clipboard