Warning

This feature is available in the Full MapKit SDK version

MMKSpeaker

protocol MMKSpeaker : NSObjectProtocol

Undocumented

Summary

Instance methods

func reset()
Stops all speech and forgets all previously scheduled phrases

func say(with phrase: MMKLocalizedPhrase)
Pronounces the phrase, interrupting the one being spoken now, if neccessary

func duration(with phrase: MMKLocalizedPhrase) -> Double
Returns the phrase duration (how many seconds it takes to pronounce it)

Instance methods

reset()

func reset()

Stops all speech and forgets all previously scheduled phrases.


say(with:)

func say(with phrase: MMKLocalizedPhrase)

Pronounces the phrase, interrupting the one being spoken now, if neccessary.


duration(with:)

func duration(with phrase: MMKLocalizedPhrase) -> Double

Returns the phrase duration (how many seconds it takes to pronounce it).