Update outputManager.py

This commit is contained in:
chrys87 2016-09-21 16:56:17 +02:00 committed by GitHub
parent a6ef252f21
commit a2ef1b4e43

View File

@ -18,8 +18,10 @@ class outputManager():
def shutdown(self, environment):
if environment['runtime']['soundDriver']:
environment['runtime']['soundDriver'].shutdown(environment)
del environment['runtime']['soundDriver']
if environment['runtime']['speechDriver']:
environment['runtime']['speechDriver'].shutdown(environment)
del environment['runtime']['speechDriver']
def presentText(self, environment, text, interrupt=True, soundIcon = ''):
environment['runtime']['debug'].writeDebugOut(environment,"presentText:\nsoundIcon:'"+soundIcon+"'\nText:\n" + text ,debug.debugLevel.INFO)