From f42eafd81612f45c06866c8e84e9a6de30639709 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 18 Oct 2016 14:10:56 +0200 Subject: [PATCH] more pause tweaks --- config/punctuation/default.conf | 4 ++-- src/fenrir/core/punctuationManager.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/punctuation/default.conf b/config/punctuation/default.conf index 44d5590e..e2c30871 100644 --- a/config/punctuation/default.conf +++ b/config/punctuation/default.conf @@ -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 diff --git a/src/fenrir/core/punctuationManager.py b/src/fenrir/core/punctuationManager.py index f2ab3da8..b7eb0a9c 100644 --- a/src/fenrir/core/punctuationManager.py +++ b/src/fenrir/core/punctuationManager.py @@ -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) + ' ')