Interface Voice.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Voice.Builder,Voice>, SdkBuilder<Voice.Builder,Voice>, SdkPojo
Enclosing class:
Voice

public static interface Voice.Builder extends SdkPojo, CopyableBuilder<Voice.Builder,Voice>
  • Method Details

    • gender

      Voice.Builder gender(String gender)

      Gender of the voice.

      Parameters:
      gender - Gender of the voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • gender

      Voice.Builder gender(Gender gender)

      Gender of the voice.

      Parameters:
      gender - Gender of the voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech operation.

      Parameters:
      id - Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech operation.

      Parameters:
      id - Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • languageCode

      Voice.Builder languageCode(String languageCode)

      Language code of the voice.

      Parameters:
      languageCode - Language code of the voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • languageCode

      Voice.Builder languageCode(LanguageCode languageCode)

      Language code of the voice.

      Parameters:
      languageCode - Language code of the voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • languageName

      Voice.Builder languageName(String languageName)

      Human readable name of the language in English.

      Parameters:
      languageName - Human readable name of the language in English.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Voice.Builder name(String name)

      Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.

      Parameters:
      name - Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalLanguageCodesWithStrings

      Voice.Builder additionalLanguageCodesWithStrings(Collection<String> additionalLanguageCodes)

      Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Parameters:
      additionalLanguageCodes - Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalLanguageCodesWithStrings

      Voice.Builder additionalLanguageCodesWithStrings(String... additionalLanguageCodes)

      Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Parameters:
      additionalLanguageCodes - Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalLanguageCodes

      Voice.Builder additionalLanguageCodes(Collection<LanguageCode> additionalLanguageCodes)

      Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Parameters:
      additionalLanguageCodes - Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalLanguageCodes

      Voice.Builder additionalLanguageCodes(LanguageCode... additionalLanguageCodes)

      Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Parameters:
      additionalLanguageCodes - Additional codes for languages available for the specified voice in addition to its default language.

      For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedEnginesWithStrings

      Voice.Builder supportedEnginesWithStrings(Collection<String> supportedEngines)

      Specifies which engines (standard, neural or long-form) are supported by a given voice.

      Parameters:
      supportedEngines - Specifies which engines (standard, neural or long-form) are supported by a given voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedEnginesWithStrings

      Voice.Builder supportedEnginesWithStrings(String... supportedEngines)

      Specifies which engines (standard, neural or long-form) are supported by a given voice.

      Parameters:
      supportedEngines - Specifies which engines (standard, neural or long-form) are supported by a given voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedEngines

      Voice.Builder supportedEngines(Collection<Engine> supportedEngines)

      Specifies which engines (standard, neural or long-form) are supported by a given voice.

      Parameters:
      supportedEngines - Specifies which engines (standard, neural or long-form) are supported by a given voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedEngines

      Voice.Builder supportedEngines(Engine... supportedEngines)

      Specifies which engines (standard, neural or long-form) are supported by a given voice.

      Parameters:
      supportedEngines - Specifies which engines (standard, neural or long-form) are supported by a given voice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.