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 Details

    • Voice

      public Voice()
  • Method Details

    • getUrl

      public String getUrl()
      Gets the url.

      The URI of the voice.

      Returns:
      the url
    • getGender

      public String getGender()
      Gets the gender.

      The gender of the voice: `male` or `female`.

      Returns:
      the gender
    • getName

      public String getName()
      Gets the name.

      The name of the voice. Use this as the voice identifier in all requests.

      Returns:
      the name
    • getLanguage

      public String getLanguage()
      Gets the language.

      The language and region of the voice (for example, `en-US`).

      Returns:
      the language
    • getDescription

      public String getDescription()
      Gets the description.

      A textual description of the voice.

      Returns:
      the description
    • isCustomizable

      public Boolean 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

      public SupportedFeatures getSupportedFeatures()
      Gets the supportedFeatures.

      Additional service features that are supported with the voice.

      Returns:
      the supportedFeatures
    • getCustomization

      public CustomModel 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