@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
).
Modifier and Type | Class and Description |
---|---|
static class |
TtsOracleSpeechSettings.Builder |
static class |
TtsOracleSpeechSettings.OutputFormat
The format of audio in which the user wants the audio to be in.
|
static class |
TtsOracleSpeechSettings.SpeechMarkTypes |
static class |
TtsOracleSpeechSettings.TextType
The format in which the input text has been supplied i.e., Text or SSML.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
TtsOracleSpeechSettings(TtsOracleSpeechSettings.TextType textType,
Integer sampleRateInHz,
TtsOracleSpeechSettings.OutputFormat outputFormat,
List<TtsOracleSpeechSettings.SpeechMarkTypes> speechMarkTypes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TtsOracleSpeechSettings.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
TtsOracleSpeechSettings.OutputFormat |
getOutputFormat()
The format of audio in which the user wants the audio to be in.
|
Integer |
getSampleRateInHz()
The sample rate of the generated audio.
|
List<TtsOracleSpeechSettings.SpeechMarkTypes> |
getSpeechMarkTypes()
The kind of time stamp markings the user wants for the audio.
|
TtsOracleSpeechSettings.TextType |
getTextType()
The format in which the input text has been supplied i.e., Text or SSML.
|
int |
hashCode() |
TtsOracleSpeechSettings.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"textType","sampleRateInHz","outputFormat","speechMarkTypes"}) public TtsOracleSpeechSettings(TtsOracleSpeechSettings.TextType textType, Integer sampleRateInHz, TtsOracleSpeechSettings.OutputFormat outputFormat, List<TtsOracleSpeechSettings.SpeechMarkTypes> speechMarkTypes)
public static TtsOracleSpeechSettings.Builder builder()
Create a new builder.
public TtsOracleSpeechSettings.Builder toBuilder()
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
public Integer getSampleRateInHz()
The sample rate of the generated audio. By default, the audio will be generated with speaker voice sample rate.
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
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
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.