MapboxSpeechApi
Mapbox Speech Api that allows you to generate an announcement based on VoiceInstructions
Parameters
Context
String
Locale language (IETF BCP 47)
MapboxSpeechApiOptions (optional)
Constructors
Functions
The method stops the process of retrieving the file voice instruction SpeechAnnouncement and destroys any related callbacks.
Given the SpeechAnnouncement the method may cleanup any associated files previously generated.
Given VoiceInstructions the method will try to generate the voice instruction SpeechAnnouncement including the synthesized speech mp3 file from Mapbox's API Voice. NOTE: this method will try downloading an mp3 file from server. If you use voice instructions predownloading (see VoiceInstructionsPrefetcher), invoke generatePredownloaded instead of this method in your VoiceInstructionsObserver.
Given VoiceInstructions the method will try to generate the voice instruction SpeechAnnouncement including the synthesized speech mp3 file from Mapbox's API Voice. NOTE: this method will NOT try downloading an mp3 file from server. It will either use an already predownloaded file or an onboard speech synthesizer. Only invoke this method if you use voice instructions predownloading (see VoiceInstructionsPrefetcher), otherwise invoke generatePredownloaded in your VoiceInstructionsObserver.