imporove quoting

This commit is contained in:
chrys 2017-10-22 22:36:06 +02:00
parent 5f983b0527
commit b836d3c370

View File

@ -37,7 +37,7 @@ class driver():
try: try:
self.server.sendline('tts_say ' + '\"' + text +'\"') self.server.sendline('tts_say ' + '\"' + text +'\"')
#print(text.replace('"', '\\\"')) #print(text.replace('"', '\\\"'))
#self.server.sendline('tts_say ' + '\"' + text.replace('"', '\\\"') +'\"') self.server.sendline('tts_say ' + '"' + text.replace('"', '\"') +'"')
except Exception as e: except Exception as e:
self.env['runtime']['debug'].writeDebugOut('speechDriver:speak:self.server.sendline():' + str(e),debug.debugLevel.ERROR) self.env['runtime']['debug'].writeDebugOut('speechDriver:speak:self.server.sendline():' + str(e),debug.debugLevel.ERROR)