public static class VoiceSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VoiceSummary |
build() |
VoiceSummary.Builder |
copy(VoiceSummary model) |
VoiceSummary.Builder |
description(String description)
A small description of the voice like its language and voice type.
|
VoiceSummary.Builder |
displayName(String displayName)
A user-friendly display name of the language for the user.
|
VoiceSummary.Builder |
gender(VoiceSummary.Gender gender)
Gender of the speaker.
|
VoiceSummary.Builder |
isDefaultVoice(Boolean isDefaultVoice)
Whether this voice id is default voice used for inference.
|
VoiceSummary.Builder |
languageCode(VoiceSummary.LanguageCode languageCode)
An abbreviated notation of region to which the language and accent of the speaker belongs
to.
|
VoiceSummary.Builder |
languageDescription(String languageDescription)
A description of region to which the language and accent of the speaker belongs to.
|
VoiceSummary.Builder |
sampleRateInHertz(Integer sampleRateInHertz)
The sample rate of the speaker in Hertz.
|
VoiceSummary.Builder |
supportedModels(List<String> supportedModels)
Models the particular speaker is aligned to.
|
VoiceSummary.Builder |
voiceId(String voiceId)
Unique Id of the voice.
|
VoiceSummary.Builder |
wordsPerMinute(Integer wordsPerMinute)
The number of words the speaker can narrate per minute.
|
public VoiceSummary.Builder voiceId(String voiceId)
Unique Id of the voice.
voiceId
- the value to setpublic VoiceSummary.Builder displayName(String displayName)
A user-friendly display name of the language for the user.
displayName
- the value to setpublic VoiceSummary.Builder description(String description)
A small description of the voice like its language and voice type.
description
- the value to setpublic VoiceSummary.Builder gender(VoiceSummary.Gender gender)
Gender of the speaker.
gender
- the value to setpublic VoiceSummary.Builder supportedModels(List<String> supportedModels)
Models the particular speaker is aligned to.
supportedModels
- the value to setpublic VoiceSummary.Builder languageCode(VoiceSummary.LanguageCode languageCode)
An abbreviated notation of region to which the language and accent of the speaker belongs to.
languageCode
- the value to setpublic VoiceSummary.Builder languageDescription(String languageDescription)
A description of region to which the language and accent of the speaker belongs to.
languageDescription
- the value to setpublic VoiceSummary.Builder sampleRateInHertz(Integer sampleRateInHertz)
The sample rate of the speaker in Hertz.
sampleRateInHertz
- the value to setpublic VoiceSummary.Builder wordsPerMinute(Integer wordsPerMinute)
The number of words the speaker can narrate per minute. It signifies the speed of the speech produced by the speaker.
wordsPerMinute
- the value to setpublic VoiceSummary.Builder isDefaultVoice(Boolean isDefaultVoice)
Whether this voice id is default voice used for inference.
isDefaultVoice
- the value to setpublic VoiceSummary build()
public VoiceSummary.Builder copy(VoiceSummary model)
Copyright © 2016–2024. All rights reserved.