Class Prompt
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Prompt
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Constructor Summary
Constructors Constructor Description Prompt() -
Method Summary
Modifier and Type Method Description StringgetError()Gets the error.StringgetPrompt()Gets the prompt.StringgetPromptId()Gets the promptId.StringgetSpeakerId()Gets the speakerId.StringgetStatus()Gets the status.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Prompt
public Prompt()
-
-
Method Details
-
getPrompt
Gets the prompt.The user-specified text of the prompt.
- Returns:
- the prompt
-
getPromptId
Gets the promptId.The user-specified identifier (name) of the prompt.
- Returns:
- the promptId
-
getStatus
Gets the status.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 an `error` field that describes the reason for the failure.
- Returns:
- the status
-
getError
Gets the error.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.
- Returns:
- the error
-
getSpeakerId
Gets the speakerId.The speaker ID (GUID) of the speaker for which the prompt was defined. The field is omitted if no speaker ID was specified.
- Returns:
- the speakerId
-