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)
|
# the entrys are seperated with :===: in words colon tripple equal colon ( to not collide with substitutions)
|
||||||
[levelDict]
|
[levelDict]
|
||||||
none:===:
|
none:===:
|
||||||
some:===:.-$~+*-/\\@
|
some:===:.-$~+*-/\@
|
||||||
most:===:.,:-$~+*-/\\@!#%^&*()[]}{<>;
|
most:===:.,:-$~+*-/\@!#%^&*()[]}{<>;
|
||||||
all:===:!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~
|
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
|
# 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 key in punctuation:
|
||||||
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
||||||
len(key) == 1 and \
|
len(key) == 1 and \
|
||||||
key in string.punctuation:
|
key in ",.;:?!-":
|
||||||
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
|
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
|
||||||
else:
|
else:
|
||||||
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
|
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user