File tree Expand file tree Collapse file tree
src/main/java/com/alibaba/dashscope
aigc/multimodalconversation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ public enum Voice {
113113 @ SerializedName ("Aiden" )
114114 AIDEN ("Aiden" ),
115115
116- @ SerializedName ("Eldric Saga " )
117- ELDRIC_SAGA ("Eldric Saga " ),
116+ @ SerializedName ("Eldric Sage " )
117+ ELDRIC_SAGE ("Eldric Sage " ),
118118
119119 @ SerializedName ("Mia" )
120120 MIA ("Mia" ),
Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ public class QwenTtsRealtimeConfig {
4747 /** text normalization, default is true */
4848 @ Builder .Default Boolean enableTn = true ;
4949
50+ /** instructions for tts, default is null */
51+ @ Builder .Default String instructions = null ;
52+
53+ /** instructions will optimize on server side, default is null */
54+ @ Builder .Default String optimizeInstructions = null ;
55+
5056 /** The extra parameters. */
5157 @ Builder .Default Map <String , Object > parameters = null ;
5258
@@ -84,6 +90,14 @@ public JsonObject getConfig() {
8490 config .put (QwenTtsRealtimeConstants .ENABLE_TN , enableTn );
8591 }
8692
93+ if (instructions != null ) {
94+ config .put (QwenTtsRealtimeConstants .INSTRUCTIONS , instructions );
95+ }
96+
97+ if (optimizeInstructions != null ) {
98+ config .put (QwenTtsRealtimeConstants .OPTIMIZE_INSTRUCTIONS , optimizeInstructions );
99+ }
100+
87101 if (parameters != null ) {
88102 for (Map .Entry <String , Object > entry : parameters .entrySet ()) {
89103 config .put (entry .getKey (), entry .getValue ());
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ public class QwenTtsRealtimeConstants {
1515 public static final String BIT_RATE = "bit_rate" ;
1616 public static final String LANGUAGE_TYPE = "language_type" ;
1717 public static final String ENABLE_TN = "enable_tn" ;
18+ public static final String INSTRUCTIONS = "instructions" ;
19+ public static final String OPTIMIZE_INSTRUCTIONS = "optimize_instructions" ;
1820 public static final String PROTOCOL_EVENT_ID = "event_id" ;
1921 public static final String PROTOCOL_TYPE = "type" ;
2022 public static final String PROTOCOL_SESSION = "session" ;
You can’t perform that action at this time.
0 commit comments