Class Voice
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.text_to_speech.v1.model.Voice
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Voice
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Information about an available voice.
-
Constructor Summary
Constructors Constructor Description Voice()
-
Method Summary
Modifier and Type Method Description CustomModel
getCustomization()
Gets the customization.String
getDescription()
Gets the description.String
getGender()
Gets the gender.String
getLanguage()
Gets the language.String
getName()
Gets the name.SupportedFeatures
getSupportedFeatures()
Gets the supportedFeatures.String
getUrl()
Gets the url.Boolean
isCustomizable()
Gets the customizable.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Voice
public Voice()
-
-
Method Details
-
getUrl
Gets the url.The URI of the voice.
- Returns:
- the url
-
getGender
Gets the gender.The gender of the voice: `male` or `female`.
- Returns:
- the gender
-
getName
Gets the name.The name of the voice. Use this as the voice identifier in all requests.
- Returns:
- the name
-
getLanguage
Gets the language.The language and region of the voice (for example, `en-US`).
- Returns:
- the language
-
getDescription
Gets the description.A textual description of the voice.
- Returns:
- the description
-
isCustomizable
Gets the customizable.If `true`, the voice can be customized; if `false`, the voice cannot be customized. (Same as `custom_pronunciation`; maintained for backward compatibility.).
- Returns:
- the customizable
-
getSupportedFeatures
Gets the supportedFeatures.Additional service features that are supported with the voice.
- Returns:
- the supportedFeatures
-
getCustomization
Gets the customization.Returns information about a specified custom model. This field is returned only by the **Get a voice** method and only when you specify the customization ID of a custom model.
- Returns:
- the customization
-