mapbox / mapbox-navigation-ios

Turn-by-turn navigation logic and UI in Swift on iOS
https://docs.mapbox.com/ios/navigation/
Other
860 stars 310 forks source link

MapboxSpeechSynthesizer don't work with custom navigation View Controller #2707

Open hassineOthmane opened 3 years ago

hassineOthmane commented 3 years ago

Mapbox Navigation SDK version: 1.0.0

i'm trygin to custom my navigation View Controller (i don't use NavigationViewController of mapbox) , everything work fine before this version : But now the MapboxSpeechSynthesizer don't work :

let speechSynthesizer = MultiplexedSpeechSynthesizer([MapboxSpeechSynthesizer(), SystemSpeechSynthesizer()] as? [SpeechSynthesizing]) let routeVoiceController = RouteVoiceController(navigationService: navigationService, speechSynthesizer: speechSynthesizer)

MapboxSpeechSynthesizer detect well instructions of mapbox (notifications) but can't play audio of amazon . is work fine only with NavigationViewController. SystemSpeechSynthesizer also work fine when i maked it like a first element.

Udumft commented 3 years ago

Hello @hassineOthmane ! Does it fallback to the SystemSpeechSynthesizerin your case? If you are not using NavigationViewController, please make sure that you are calling RouteVoiceController.didPassSpokenInstructionPoint(notification: ) so that MapboxSpeechSynthesizer has enough time to prefetch vocalization data, since it needs some time to make an API request for this.

hassineOthmane commented 3 years ago

hello @Udumft

thanks for your answer , no is not fallback to SystemSpeechSynthesizer, i'm calling RouteVoiceController.didPassSpokenInstructionPoint(notification: ) and i'm downloading the data from amazon but the audioplayer play without voice ....

Udumft commented 3 years ago

That is strange. Any other clues you may report? What localization do you use? Is it related to some specific route? Is it possible to share some minimal demo which reproduces the issue?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.