Skip to content

Commit 2080885

Browse files
authored
Merge pull request #48 from seymourtang/convoai-1.5
feat: Add SkipPatterns field to JoinPropertiesTTSBody for enhanced TTS control over bracketed content
2 parents 67b2980 + 69682ab commit 2080885

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

services/convoai/req/join.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,24 @@ type JoinPropertiesTTSBody struct {
172172
//
173173
// - TTSElevenLabsVendorParams
174174
Params TTSVendorParamsInterface `json:"params"`
175+
176+
// Controls whether the TTS module skips bracketed content when reading LLM response text.
177+
//
178+
// This prevents the agent from vocalizing structural prompt information like tone indicators,
179+
// action descriptions, and system prompts, creating a more natural and immersive listening experience.
180+
//
181+
// Enable this feature by specifying one or more values:
182+
//
183+
// 1: Skip content in Chinese parentheses ( ),unicode is \uFF08 \uFF09
184+
//
185+
// 2: Skip content in Chinese square brackets 【】,unicode is \u3010 \u3011
186+
//
187+
// 3: Skip content in parentheses (),unicode is \u0028 \u0029
188+
//
189+
// 4: Skip content in square brackets [ ],unicode is \u005B \u005D
190+
//
191+
// 5: Skip content in curly braces { },unicode is \u007B \u007D
192+
SkipPatterns []int `json:"skipPatterns,omitempty"`
175193
}
176194

177195
// @brief Defines the TTS vendor enumeration

0 commit comments

Comments
 (0)