Class TtsOracleTts2NaturalModelDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20220101")
    public final class TtsOracleTts2NaturalModelDetails
    extends TtsOracleModelDetails
    Use this schema for specifying properties of TTS_2_NATURAL model from Oracle model family.
    Note: Objects should always be created or deserialized using the TtsOracleTts2NaturalModelDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the TtsOracleTts2NaturalModelDetails.Builder, which maintain a set of all explicitly set fields called TtsOracleTts2NaturalModelDetails.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Constructor Detail

      • TtsOracleTts2NaturalModelDetails

        @Deprecated
        public TtsOracleTts2NaturalModelDetails​(String voiceId,
                                                String languageCode)
        Deprecated.
    • Method Detail

      • getVoiceId

        public String getVoiceId()
        Speaker in whose voice the user wants the output speech to be in.

        The possible values for voiceId can be obtained by calling listVoices api.

        Returns:
        the value
      • getLanguageCode

        public String getLanguageCode()
        Locale value as per given in [https://datatracker.ietf.org/doc/html/rfc5646].

        Default en-US - en-US: English - United States - en-GB: English - Great Britain - es-ES: Spanish - Spain - pt-BR: Portuguese - Brazil - hi-IN: Hindi - India - fr-FR: French - France - it-IT: Italian - Italy - ja-JP: Japanese - Japan - zh-CN: Mandarin - China

        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class TtsOracleModelDetails
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation