Class VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C extends VoiceEnrollmentParam,B extends VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C,B>
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
com.alibaba.dashscope.legacy_2x.audio.ttsv2.enrollment.VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C,B>
- Enclosing class:
- VoiceEnrollmentParam
public abstract static class VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C extends VoiceEnrollmentParam,B extends VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C,B>>
extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Cbuild()languageHints(List<String> languageHints) maxPromptAudioLength(float maxPromptAudioLength) Maximum length of prompt audio in seconds.operationType(VoiceEnrollmentOperationType operationType) pageIndex(int pageIndex) pageSize(int pageSize) protected abstract Bself()targetModel(String targetModel) toString()Methods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder
model, resourcesMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder
apiKey, clearHeaders, clearParameters, enableEncrypt, header, headers, parameter, parameters, securityCheck, workspace
-
Constructor Details
-
VoiceEnrollmentParamBuilder
public VoiceEnrollmentParamBuilder()
-
-
Method Details
-
prefix
- Returns:
this.
-
targetModel
- Returns:
this.
-
operationType
- Returns:
this.
-
url
- Returns:
this.
-
audio
- Returns:
this.
-
voiceId
- Returns:
this.
-
languageHints
- Returns:
this.
-
pageIndex
- Returns:
this.
-
pageSize
- Returns:
this.
-
maxPromptAudioLength
Maximum length of prompt audio in seconds.- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VoiceEnrollmentParam,B extends VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VoiceEnrollmentParam,B extends VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VoiceEnrollmentParam,B extends VoiceEnrollmentParam.VoiceEnrollmentParamBuilder<C, B>>
-