SpokenInstructionFormatter
public class SpokenInstructionFormatter: NSObject
Formatter for creating speech strings.
-
Creates a string used for announcing a step.
If
markUpWithSSML
is true, the string will contain SSML. Your speech synthesizer should accept this type of string. SeePolleyVoiceController
.Declaration
Swift
public func string(routeProgress: RouteProgress, userDistance: CLLocationDistance, markUpWithSSML: Bool) -> String