more pause tweaks
This commit is contained in:
parent
c7fbf98ee1
commit
f42eafd816
@ -4,8 +4,8 @@
|
||||
# the entrys are seperated with :===: in words colon tripple equal colon ( to not collide with substitutions)
|
||||
[levelDict]
|
||||
none:===:
|
||||
some:===:.-$~+*-/\\@
|
||||
most:===:.,:-$~+*-/\\@!#%^&*()[]}{<>;
|
||||
some:===:.-$~+*-/\@
|
||||
most:===:.,:-$~+*-/\@!#%^&*()[]}{<>;
|
||||
all:===:!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~
|
||||
|
||||
# the punctuation char in some cases are append to the words because they create a pause in TTS, the behaviour may differ between the synthesers
|
||||
|
@ -45,7 +45,7 @@ class punctuationManager():
|
||||
if key in punctuation:
|
||||
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
||||
len(key) == 1 and \
|
||||
key in string.punctuation:
|
||||
key in ",.;:?!-":
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
|
||||
else:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
|
||||
|
Loading…
Reference in New Issue
Block a user