Важно

This feature is available in the Full MapKit SDK version

YMKSpeaker

protocol YMKSpeaker : NSObjectProtocol

Undocumented

Summary

Instance methods

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

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

func duration(with phrase: YMKLocalizedPhrase) -> 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: YMKLocalizedPhrase)

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


duration(with:)

func duration(with phrase: YMKLocalizedPhrase) -> Double

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


Предыдущая
Следующая