open class RouteVoiceController : NSObject, AVSpeechSynthesizerDelegate
A route voice controller monitors turn-by-turn navigation events and triggers playing spoken instructions as audio using the Speech Synthesis framework, also known as VoiceOver.
You initialize a voice controller using a
NavigationService instance. The voice controller observes when the navigation service hints that the user has passed a spoken instruction point and responds by calling it’s
speechSynthesizer to handle the vocalization.
You can also subclass
RouteVoiceController to implement you own mechanism of monitoring navgiation events and calling
If true, a noise indicating the user is going to be rerouted will play prior to rerouting.
public var playRerouteSound: Bool
Sound to play prior to reroute. Inherits volume level from
public var rerouteSoundPlayer: AVAudioPlayer