Navigation FAQ
How to set the language for the onTextSpeechInstruction feature in navigation?
Use the setTTSLanguage
method of the SdkSettings
. This will change the language used for the navigation voice instructions. Keep in mind that the language for the flutter_tts
package also needs to be changed accordingly. See the voice guidance section for more details.
For example, to set the language to Spanish for navigation voice instructions:
final languages = SdkSettings.languageList;
final spanish = languages.where((language) => language.languagecode == "spa").first;
SdkSettings.setTTSLanguage(spanish);
How can I skip intermediate text instructions, including voice and graphic instructions?
You can do this, before starting the navigation:
Debug.setNavigationModifiers({
NavigationModifiers.disableIntermediateWaypoints
});