TTSService
public protocol TTSService : AnyObject
Classes will conform to this protocol have to implement a set of methods in order to integrate a custom TTS service.
-
Starts saying bot audio response.
Declaration
Swift
func speak(text: String)
Parameters
text
bot message text.
-
Cancels any ongoing TTS utterance
Declaration
Swift
func cancel()
-
Returns whether the bot audio response is being spoken or not.
Declaration
Swift
func isSpeaking() -> Bool