Prompt
public struct Prompt : Codable, Equatable
Information about a custom prompt.
-
The user-specified text of the prompt.
Declaration
Swift
public var prompt: String
-
The user-specified identifier (name) of the prompt.
Declaration
Swift
public var promptID: String
-
The status of the prompt:
processing
: The service received the request to add the prompt and is analyzing the validity of the prompt.available
: The service successfully validated the prompt, which is now ready for use in a speech synthesis request.failed
: The service’s validation of the prompt failed. The status of the prompt includes anerror
field that describes the reason for the failure.
Declaration
Swift
public var status: String
-
If the status of the prompt is
failed
, an error message that describes the reason for the failure. The field is omitted if no error occurred.Declaration
Swift
public var error: String?
-
The speaker ID (GUID) of the speaker for which the prompt was defined. The field is omitted if no speaker ID was specified.
Declaration
Swift
public var speakerID: String?