Package com.oracle.bmc.aispeech.model
Class TtsOracleSpeechSettings
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.aispeech.model.TtsOracleSpeechSettings
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20220101") public final class TtsOracleSpeechSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSettings to use for generating speech with a model from ORACLE family.
Note: Objects should always be created or deserialized using theTtsOracleSpeechSettings.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 theTtsOracleSpeechSettings.Builder, which maintain a set of all explicitly set fields calledTtsOracleSpeechSettings.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTtsOracleSpeechSettings.Builderstatic classTtsOracleSpeechSettings.OutputFormatThe format of audio in which the user wants the audio to be in.static classTtsOracleSpeechSettings.SpeechMarkTypesstatic classTtsOracleSpeechSettings.TextTypeThe format in which the input text has been supplied i.e., Text or SSML.
-
Constructor Summary
Constructors Constructor Description TtsOracleSpeechSettings(TtsOracleSpeechSettings.TextType textType, Integer sampleRateInHz, TtsOracleSpeechSettings.OutputFormat outputFormat, List<TtsOracleSpeechSettings.SpeechMarkTypes> speechMarkTypes)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TtsOracleSpeechSettings.Builderbuilder()Create a new builder.booleanequals(Object o)TtsOracleSpeechSettings.OutputFormatgetOutputFormat()The format of audio in which the user wants the audio to be in.IntegergetSampleRateInHz()The sample rate of the generated audio.List<TtsOracleSpeechSettings.SpeechMarkTypes>getSpeechMarkTypes()The kind of time stamp markings the user wants for the audio.TtsOracleSpeechSettings.TextTypegetTextType()The format in which the input text has been supplied i.e., Text or SSML.inthashCode()TtsOracleSpeechSettings.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
TtsOracleSpeechSettings
@Deprecated @ConstructorProperties({"textType","sampleRateInHz","outputFormat","speechMarkTypes"}) public TtsOracleSpeechSettings(TtsOracleSpeechSettings.TextType textType, Integer sampleRateInHz, TtsOracleSpeechSettings.OutputFormat outputFormat, List<TtsOracleSpeechSettings.SpeechMarkTypes> speechMarkTypes)
Deprecated.
-
-
Method Detail
-
builder
public static TtsOracleSpeechSettings.Builder builder()
Create a new builder.
-
toBuilder
public TtsOracleSpeechSettings.Builder toBuilder()
-
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 : This is only supported for en-US language.
- 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:
toStringin classcom.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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-