File tree Expand file tree Collapse file tree
src/main/java/com/alibaba/dashscope/audio/qwen_tts_realtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ public class QwenTtsRealtimeConfig {
5050 /** instructions for tts, default is null */
5151 @ Builder .Default String instructions = null ;
5252
53- /** instructions will optimize on server side, default is null */
54- @ Builder .Default String optimizeInstructions = null ;
53+ /** instructions will optimize on server side, default is false */
54+ @ Builder .Default Boolean optimizeInstructions = false ;
5555
5656 /** The extra parameters. */
5757 @ Builder .Default Map <String , Object > parameters = null ;
@@ -94,8 +94,8 @@ public JsonObject getConfig() {
9494 config .put (QwenTtsRealtimeConstants .INSTRUCTIONS , instructions );
9595 }
9696
97- if (optimizeInstructions != null ) {
98- config .put (QwenTtsRealtimeConstants .OPTIMIZE_INSTRUCTIONS , optimizeInstructions );
97+ if (optimizeInstructions != null && optimizeInstructions ) {
98+ config .put (QwenTtsRealtimeConstants .OPTIMIZE_INSTRUCTIONS , true );
9999 }
100100
101101 if (parameters != null ) {
You can’t perform that action at this time.
0 commit comments