Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -849,13 +849,38 @@ public static class TTSPayload {
@JsonProperty("params")
private TTSVendorParams params;

/**
* Controls whether the TTS module skips bracketed content when reading LLM
* response text.
* <p>
* This prevents the agent from vocalizing structural prompt information like
* tone indicators,
* action descriptions, and system prompts, creating a more natural and
* immersive listening experience.
* <p>
* Enable this feature by specifying one or more values:
* <p>
* 1: Skip content in Chinese parentheses ( )
* <p>
* 2: Skip content in Chinese square brackets 【】
* <p>
* 3: Skip content in parentheses ()
* <p>
* 4: Skip content in square brackets [ ]
* <p>
* 5: Skip content in curly braces { }
*/
@JsonProperty("skipPatterns")
private List<Integer> skipPatterns;

public static Builder builder() {
return new Builder();
}

private TTSPayload(Builder builder) {
setVendor(builder.vendor);
setParams(builder.params);
setSkipPatterns(builder.skipPatterns);
}

public TTSVendorParams getParams() {
Expand All @@ -874,9 +899,18 @@ public void setVendor(TTSVendorEnum vendor) {
this.vendor = vendor;
}

public List<Integer> getSkipPatterns() {
return skipPatterns;
}

public void setSkipPatterns(List<Integer> skipPatterns) {
this.skipPatterns = skipPatterns;
}

public static final class Builder {
private TTSVendorEnum vendor;
private TTSVendorParams params;
private List<Integer> skipPatterns;

private Builder() {
}
Expand All @@ -891,6 +925,11 @@ public Builder params(TTSVendorParams val) {
return this;
}

public Builder skipPatterns(List<Integer> val) {
skipPatterns = val;
return this;
}

public TTSPayload build() {
return new TTSPayload(this);
}
Expand Down