You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Fix voice instructions cache we updated how the NavigationSpeechPlayer is created. This is the same speech player we use by default in the NavigationView, but you are able to use it as a separate component as well. We now give you control over the Cache used to pre-cache voice instructions.
New initialization:
val english = US.language
val cache = Cache(File(application.cacheDir, EXAMPLE_INSTRUCTION_CACHE),
TEN_MEGABYTE_CACHE_SIZE)
val voiceInstructionLoader = VoiceInstructionLoader(getApplication(), accessToken, cache)
val speechPlayerProvider = SpeechPlayerProvider(getApplication(), english, true, voiceInstructionLoader)
speechPlayer = NavigationSpeechPlayer(speechPlayerProvider)