File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2026,7 +2026,7 @@ class TalkingHead {
20262026 // Classifiers
20272027 const dividersSentence = / [ ! \. \? \n \p{ Extended_Pictographic} ] / ug;
20282028 const dividersWord = / [ ] / ug;
2029- const speakables = / [ \p{ L} \p{ N} , \. ' ! € \$ \+ \- – — % & \? ] / ug;
2029+ const speakables = / [ \p{ L} \p{ N} , \. ' ! € \$ \+ \p { Dash_Punctuation } % & \? ] / ug;
20302030 const emojis = / [ \p{ Extended_Pictographic} ] / ug;
20312031 const lipsyncLang = opt . lipsyncLang || this . avatar . lipsyncLang || this . opt . lipsyncLang ;
20322032
@@ -2474,7 +2474,8 @@ class TalkingHead {
24742474 . replaceAll ( '<' , '<' )
24752475 . replaceAll ( '>' , '>' )
24762476 . replaceAll ( '"' , '"' )
2477- . replaceAll ( '\'' , ''' ) ;
2477+ . replaceAll ( '\'' , ''' )
2478+ . replace ( / ^ \p{ Dash_Punctuation} $ / ug, '<break time="750ms"/>' ) ;
24782479
24792480 } ) ;
24802481 ssml += "</speak>" ;
You can’t perform that action at this time.
0 commit comments