mapbox-navigation-ios
mapbox-navigation-ios copied to clipboard
Voice Controller Stops After Rerouting
In RouteVoiceController class in pauseSpeechAndPlayReroutingDing method, you stop speechSynth at first and then check if playRerouteSound is true or not. I have a custom Navigation Controller where I set the playRerouteSound variable to false. My voice controller stops after rerouting. I changed the order of the first lines of this method to solve my problem:
@objc func pauseSpeechAndPlayReroutingDing(notification: NSNotification) {
guard playRerouteSound && !NavigationSettings.shared.voiceMuted else {
return
}
speechSynth.stopSpeaking(at: .word)
do {
try mixAudio()
} catch {
voiceControllerDelegate?.voiceController?(self, spokenInstructionsDidFailWith: error)
}
rerouteSoundPlayer.play()
}
Mapbox Navigation SDK version:0.26
Thanks for opening an issue. If you have a fix, would you mind opening a pull request?
A fix for this issue landed in #1903