@objc(MBVoiceControllerDelegate) 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.
@objc(voiceController:spokenInstrucionsDidFailWithError:) 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.
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.
Called when a spoken is about to speak. Useful if it is necessary to give a custom instruction instead. Noting, changing the
SpokenInstructionwill have no impact on when the instruction will be said.