public static class TtsOracleSpeechSettings.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
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
textType
- the value to setpublic TtsOracleSpeechSettings.Builder sampleRateInHz(Integer sampleRateInHz)
The sample rate of the generated audio. By default, the audio will be generated with speaker voice sample rate.
sampleRateInHz
- the value to setpublic 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
outputFormat
- the value to setpublic 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
speechMarkTypes
- the value to setpublic TtsOracleSpeechSettings build()
public TtsOracleSpeechSettings.Builder copy(TtsOracleSpeechSettings model)
Copyright © 2016–2024. All rights reserved.