@@ -849,13 +849,38 @@ public static class TTSPayload {
849
849
@ JsonProperty ("params" )
850
850
private TTSVendorParams params ;
851
851
852
+ /**
853
+ * Controls whether the TTS module skips bracketed content when reading LLM
854
+ * response text.
855
+ * <p>
856
+ * This prevents the agent from vocalizing structural prompt information like
857
+ * tone indicators,
858
+ * action descriptions, and system prompts, creating a more natural and
859
+ * immersive listening experience.
860
+ * <p>
861
+ * Enable this feature by specifying one or more values:
862
+ * <p>
863
+ * 1: Skip content in Chinese parentheses ( )
864
+ * <p>
865
+ * 2: Skip content in Chinese square brackets 【】
866
+ * <p>
867
+ * 3: Skip content in parentheses ()
868
+ * <p>
869
+ * 4: Skip content in square brackets [ ]
870
+ * <p>
871
+ * 5: Skip content in curly braces { }
872
+ */
873
+ @ JsonProperty ("skipPatterns" )
874
+ private List <Integer > skipPatterns ;
875
+
852
876
public static Builder builder () {
853
877
return new Builder ();
854
878
}
855
879
856
880
private TTSPayload (Builder builder ) {
857
881
setVendor (builder .vendor );
858
882
setParams (builder .params );
883
+ setSkipPatterns (builder .skipPatterns );
859
884
}
860
885
861
886
public TTSVendorParams getParams () {
@@ -874,9 +899,18 @@ public void setVendor(TTSVendorEnum vendor) {
874
899
this .vendor = vendor ;
875
900
}
876
901
902
+ public List <Integer > getSkipPatterns () {
903
+ return skipPatterns ;
904
+ }
905
+
906
+ public void setSkipPatterns (List <Integer > skipPatterns ) {
907
+ this .skipPatterns = skipPatterns ;
908
+ }
909
+
877
910
public static final class Builder {
878
911
private TTSVendorEnum vendor ;
879
912
private TTSVendorParams params ;
913
+ private List <Integer > skipPatterns ;
880
914
881
915
private Builder () {
882
916
}
@@ -891,6 +925,11 @@ public Builder params(TTSVendorParams val) {
891
925
return this ;
892
926
}
893
927
928
+ public Builder skipPatterns (List <Integer > val ) {
929
+ skipPatterns = val ;
930
+ return this ;
931
+ }
932
+
894
933
public TTSPayload build () {
895
934
return new TTSPayload (this );
896
935
}
0 commit comments