Skip to content
Snippets Groups Projects
Commit f7eaf6c3 authored by jkerdreu's avatar jkerdreu
Browse files

Fix bug in Alexa name


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2966 b32b6428-25c9-4566-ad07-03861ab6144f
parent ff57fc76
Branches
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ class Echo(object):
def say(self,_msg,_lang=None,_voice=None):
if _lang or _voice:
logger.warning("Unable to change lang or voice right now")
self.gw.run_script(f'-d {self.name} -e speak:"{_msg}"')
self.gw.run_script(f'-d "{self.name}" -e speak:"{_msg}"')
class LastEcho(Echo):
......
......@@ -49,6 +49,7 @@ class GW(object):
t0 = now()
cmd = self.remote_script + " " + cmd
args = shlex.split(cmd)
logger.info(f"Launching: {cmd}")
proc = await asyncio.create_subprocess_exec(*args,stdout=asyncio.subprocess.PIPE,stderr=asyncio.subprocess.PIPE)
stdout, stderr = await proc.communicate()
logger.info(f"Run {cmd}: {proc.returncode}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment