From 14c564215c1e4c45137a15def239201f94cbd30c Mon Sep 17 00:00:00 2001 From: Martin Kainzbauer Date: Thu, 13 Jul 2017 22:09:27 +0200 Subject: [PATCH] trying to fix #17 Device or resource busy when calling Assistant --- src/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.py b/src/main.py index b115ad4b..da008d1e 100755 --- a/src/main.py +++ b/src/main.py @@ -360,10 +360,13 @@ def assistant_handler(voice_command): logger.info('Starting Assistant conversation') try: # Tell Assistant to start recording + sound = pexpect.spawn('cvlc --play-and-exit /opt/AlexaPi/src/resources/okgoogle.mp3') p.sendline('assistant_record') + ''' p.expect('Recording audio .*') # If ready to record, play sound sound = pexpect.spawn('cvlc /opt/AlexaPi/src/resources/okgoogle.mp3') + ''' # Wait for end of conversation p.expect('Assistant conversation finished', timeout=180) p.sendline('assistant_pause')