tell the TTS system the pause without messinng config files
This commit is contained in:
@ -43,7 +43,12 @@ class punctuationManager():
|
||||
if punctuationDict and punctuation and punctuation != '':
|
||||
for key,item in punctuationDict.items():
|
||||
if key in punctuation:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) +' ')
|
||||
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
|
||||
len(key) == 1 and \
|
||||
key in string.punctuation:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + str(key) + ' ')
|
||||
else:
|
||||
resultText = resultText.replace(str(key),' ' +str(item) + ' ')
|
||||
return resultText
|
||||
|
||||
def proceedPunctuation(self, text, ignorePunctuation=False):
|
||||
|
@ -43,6 +43,7 @@ settings = {
|
||||
'debugLevel': debug.debugLevel.DEACTIVE,
|
||||
'punctuationProfile':'default',
|
||||
'punctuationLevel': 'some',
|
||||
'respectPunctuationPause':True,
|
||||
'numberOfClipboards': 10,
|
||||
'emoticons': True,
|
||||
'fenrirKeys': ['KEY_KP0','KEY_META'],
|
||||
|
Reference in New Issue
Block a user