We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dc44b5 commit 1440ed5Copy full SHA for 1440ed5
1 file changed
src/main/java/com/alibaba/dashscope/audio/ttsv2/enrollment/VoiceEnrollmentParam.java
@@ -55,6 +55,15 @@ public JsonObject getInput() {
55
if (maxPromptAudioLength > 0) {
56
input.addProperty("max_prompt_audio_length", maxPromptAudioLength);
57
}
58
+ // add parameters into input
59
+ if (parameters != null) {
60
+ for (String key : parameters.keySet()) {
61
+ Object value = parameters.get(key);
62
+ if (key != null && value != null) {
63
+ input.add(key, JsonUtils.toJsonElement(value));
64
+ }
65
66
67
break;
68
case LIST:
69
input.addProperty(ApiKeywords.ACTION, operationType.getValue());
0 commit comments