RouteVoiceController
@objc(MBRouteVoiceController)
open class RouteVoiceController : NSObject, AVSpeechSynthesizerDelegate, AVAudioPlayerDelegate
The RouteVoiceController
class provides voice guidance.
-
If true, a noise indicating the user is going to be rerouted will play prior to rerouting.
Declaration
Swift
@objc public var playRerouteSound: Bool
-
Sound to play prior to reroute. Inherits volume level from
volume
.Declaration
Swift
@objc public var rerouteSoundPlayer: AVAudioPlayer
-
Delegate used for getting metadata information about a particular spoken instruction.
Declaration
Swift
public weak var voiceControllerDelegate: VoiceControllerDelegate?
-
Default initializer for
RouteVoiceController
.Declaration
Swift
override public init()
-
Reads aloud the given instruction.
Declaration
Swift
open func speak(_ instruction: SpokenInstruction)
Parameters
instruction
The instruction to read aloud.