Class TtsOracleSpeechSettings


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20220101")
    public final class TtsOracleSpeechSettings
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Settings to use for generating speech with a model from ORACLE family.
    Note: Objects should always be created or deserialized using the TtsOracleSpeechSettings.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 TtsOracleSpeechSettings.Builder, which maintain a set of all explicitly set fields called TtsOracleSpeechSettings.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).
    • Method Detail

      • getTextType

        public TtsOracleSpeechSettings.TextType getTextType()
        The format in which the input text has been supplied i.e., Text or SSML.

        The supported text types are: - TEXT - SSML

        Returns:
        the value
      • getSampleRateInHz

        public Integer getSampleRateInHz()
        The sample rate of the generated audio.

        By default, the audio will be generated with speaker voice sample rate.

        Returns:
        the value
      • getOutputFormat

        public TtsOracleSpeechSettings.OutputFormat getOutputFormat()
        The format of audio in which the user wants the audio to be in.

        The supported output formats are: - MP3 - OGG - PCM - JSON

        Returns:
        the value
      • getSpeechMarkTypes

        public List<TtsOracleSpeechSettings.SpeechMarkTypes> getSpeechMarkTypes()
        The kind of time stamp markings the user wants for the audio.

        This property should be provided if outputFormat is json, otherwise it will be ignored. null value (i.e. no value is not specified) indicates no speech marking. The supported speech mark types are: - SENTENCE - WORD

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

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

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel