Package com.oracle.bmc.aispeech.model
Class TtsOracleSpeechSettings.Builder
- java.lang.Object
-
- com.oracle.bmc.aispeech.model.TtsOracleSpeechSettings.Builder
-
- Enclosing class:
- TtsOracleSpeechSettings
public static class TtsOracleSpeechSettings.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TtsOracleSpeechSettings
build()
TtsOracleSpeechSettings.Builder
copy(TtsOracleSpeechSettings model)
TtsOracleSpeechSettings.Builder
outputFormat(TtsOracleSpeechSettings.OutputFormat outputFormat)
The format of audio in which the user wants the audio to be in.TtsOracleSpeechSettings.Builder
sampleRateInHz(Integer sampleRateInHz)
The sample rate of the generated audio.TtsOracleSpeechSettings.Builder
speechMarkTypes(List<TtsOracleSpeechSettings.SpeechMarkTypes> speechMarkTypes)
The kind of time stamp markings the user wants for the audio.TtsOracleSpeechSettings.Builder
textType(TtsOracleSpeechSettings.TextType textType)
The format in which the input text has been supplied i.e., Text or SSML.
-
-
-
Method Detail
-
textType
public TtsOracleSpeechSettings.Builder textType(TtsOracleSpeechSettings.TextType textType)
The format in which the input text has been supplied i.e., Text or SSML.The supported text types are: - TEXT - SSML
- Parameters:
textType
- the value to set- Returns:
- this builder
-
sampleRateInHz
public TtsOracleSpeechSettings.Builder sampleRateInHz(Integer sampleRateInHz)
The sample rate of the generated audio.By default, the audio will be generated with speaker voice sample rate.
- Parameters:
sampleRateInHz
- the value to set- Returns:
- this builder
-
outputFormat
public TtsOracleSpeechSettings.Builder outputFormat(TtsOracleSpeechSettings.OutputFormat outputFormat)
The format of audio in which the user wants the audio to be in.The supported output formats are: - MP3 - OGG - PCM - JSON
- Parameters:
outputFormat
- the value to set- Returns:
- this builder
-
speechMarkTypes
public TtsOracleSpeechSettings.Builder speechMarkTypes(List<TtsOracleSpeechSettings.SpeechMarkTypes> speechMarkTypes)
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
- Parameters:
speechMarkTypes
- the value to set- Returns:
- this builder
-
build
public TtsOracleSpeechSettings build()
-
copy
public TtsOracleSpeechSettings.Builder copy(TtsOracleSpeechSettings model)
-
-