TextToSpeechInput
@objc
public class TextToSpeechInput : NSObject
Input parameters for speech synthesis. Parameters are considered transient and may change each time synthesize is called.
See also
TextToSpeech.synthesize
-
Initializer for a new TextToSpeechInput instance.
Declaration
Swift
@objc public init(_ input:String = "Here I am, a brain the size of a planet.", voice: String = "demo-male", inputFormat: TTSInputFormat = .text, id: String = UUID().description)Parameters
inputThe text input to the speech synthesizer.
voiceThe synthetic voice used to generate speech.
inputFormatThe formatting of the input.
idA unique identifier for this input request.
-
The synthetic voice used to generate speech.
Declaration
Swift
@objc public var voice: String -
The input to the synthetic voice.
Note
SSML must be valid XML.Declaration
Swift
@objc public var input: String -
The formatting of the input.
Declaration
Swift
@objc public var inputFormat: TTSInputFormat -
A unique identifier for this input request.
Declaration
Swift
@objc public var id: String
View on GitHub
TextToSpeechInput Class Reference