fix typo
This commit is contained in:
parent
9472a3f6fa
commit
7e77392c04
@ -99,7 +99,7 @@ interruptOnKeyPressFilter=
|
|||||||
doubleTapTimeout=0.2
|
doubleTapTimeout=0.2
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=0
|
debugLevel=1
|
||||||
punctuationProfile=default
|
punctuationProfile=default
|
||||||
punctuationLevel=some
|
punctuationLevel=some
|
||||||
respectPunctuationPause=True
|
respectPunctuationPause=True
|
||||||
|
@ -148,14 +148,14 @@ class driver():
|
|||||||
popenSpeechCommand = popenSpeechCommand.replace('fenrirPitch', str(utterance['pitch']).replace('"',''))
|
popenSpeechCommand = popenSpeechCommand.replace('fenrirPitch', str(utterance['pitch']).replace('"',''))
|
||||||
popenSpeechCommand = popenSpeechCommand.replace('fenrirRate', str(utterance['rate']).replace('"',''))
|
popenSpeechCommand = popenSpeechCommand.replace('fenrirRate', str(utterance['rate']).replace('"',''))
|
||||||
popenSpeechCommand = popenSpeechCommand.replace('fenrirText', str(utterance['text']).replace('"','').replace('\n',''))
|
popenSpeechCommand = popenSpeechCommand.replace('fenrirText', str(utterance['text']).replace('"','').replace('\n',''))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.lock.acquire(True)
|
self.lock.acquire(True)
|
||||||
self.proc = Popen(popenSpeechCommand, shell=True)
|
self.proc = Popen(popenSpeechCommand, shell=True)
|
||||||
self.lock.release()
|
self.lock.release()
|
||||||
self.proc.wait() # critical for MT? - if we lock it we deadlock it maybe.
|
self.proc.wait()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.env['runtime']['debug'].writeDebugOut('speechDriver:worker:'str(e),debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut('speechDriver:worker:' + str(e),debug.debugLevel.ERROR)
|
||||||
self.lock.acquire(True)
|
self.lock.acquire(True)
|
||||||
self.proc = None
|
self.proc = None
|
||||||
self.lock.release()
|
self.lock.release()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user