TextToSpeechEngineDelegate
public protocol TextToSpeechEngineDelegate : AnyObject
TextToSpeechEngineDelegate informs about certain events that occur during playback.
Important
This is a Public Preview API. It may be changed or removed at any time.
didContinue(message:)
Default implementation
Informs that the playback has been resumed after a pause.
Default Implementation
Declaration
Swift
func didContinue(message: TTSMessage)
didFinish(message:)
Default implementation
Informs that the playback has been finished.
Default Implementation
Declaration
Swift
func didFinish(message: TTSMessage)
didFinish(message:withError:)
Default implementation
Informs that an error occurred.
Default Implementation
Declaration
Swift
func didFinish(message: TTSMessage, withError: Error)
didPause(message:)
Default implementation
Informs that the playback has been paused.
Default Implementation
Declaration
Swift
func didPause(message: TTSMessage)
didStart(message:)
Default implementation
Informs that the playback has started.
Default Implementation
Declaration
Swift
func didStart(message: TTSMessage)
didStop(message:)
Default implementation
Informs that the playback has been stopped.
Default Implementation
Declaration
Swift
func didStop(message: TTSMessage)
onReady()
Default implementation
Informs that the TTS engine is ready to use.
Default Implementation
Declaration
Swift
func onReady()