Merge branch 'master' of https://github.com/chrys87/fenrir
This commit is contained in:
commit
7e3acbd62e
@ -150,12 +150,14 @@ class driver():
|
|||||||
popenSpeechCommand = popenSpeechCommand.replace('fenrirText', str(utterance['text']).replace('"','').replace('\n',''))
|
popenSpeechCommand = popenSpeechCommand.replace('fenrirText', str(utterance['text']).replace('"','').replace('\n',''))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
self.env['runtime']['debug'].writeDebugOut('speechDriver:worker:' + popenSpeechCommand,debug.debugLevel.INFO)
|
||||||
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()
|
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…
Reference in New Issue
Block a user