File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2026,7 +2026,7 @@ class TalkingHead {
2026
2026
// Classifiers
2027
2027
const dividersSentence = / [ ! \. \? \n \p{ Extended_Pictographic} ] / ug;
2028
2028
const dividersWord = / [ ] / ug;
2029
- const speakables = / [ \p{ L} \p{ N} , \. ' ! € \$ \+ \- – — % & \? ] / ug;
2029
+ const speakables = / [ \p{ L} \p{ N} , \. ' ! € \$ \+ \p { Dash_Punctuation } % & \? ] / ug;
2030
2030
const emojis = / [ \p{ Extended_Pictographic} ] / ug;
2031
2031
const lipsyncLang = opt . lipsyncLang || this . avatar . lipsyncLang || this . opt . lipsyncLang ;
2032
2032
@@ -2474,7 +2474,8 @@ class TalkingHead {
2474
2474
. replaceAll ( '<' , '<' )
2475
2475
. replaceAll ( '>' , '>' )
2476
2476
. replaceAll ( '"' , '"' )
2477
- . replaceAll ( '\'' , ''' ) ;
2477
+ . replaceAll ( '\'' , ''' )
2478
+ . replace ( / ^ \p{ Dash_Punctuation} $ / ug, '<break time="750ms"/>' ) ;
2478
2479
2479
2480
} ) ;
2480
2481
ssml += "</speak>" ;
You can’t perform that action at this time.
0 commit comments