more pause tweaks

This commit is contained in:
chrys 2016-10-18 14:10:56 +02:00
parent c7fbf98ee1
commit f42eafd816
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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) + ' ')