public protocol VoiceControllerDelegate
VoiceControllerDelegate protocol defines methods that allow an object to respond to significant events related to spoken instructions.
Called when the voice controller failed to speak an instruction.
optional func voiceController(_ voiceController: RouteVoiceController, spokenInstructionsDidFailWith error: Error)
The voice controller that experienced the failure.
An error explaining the failure and its cause. The
MBSpokenInstructionErrorCodeKeykey of the error’s user info dictionary is a
SpokenInstructionErrorCodeindicating the cause of the failure.
Called when one spoken instruction interrupts another instruction currently being spoken.
optional func voiceController(_ voiceController: RouteVoiceController, didInterrupt interruptedInstruction: SpokenInstruction, with interruptingInstruction: SpokenInstruction)
The voice controller that experienced the interruption.
The spoken instruction currently in progress that has been interrupted.
The spoken instruction that is interrupting the current instruction.