Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
trying to fix #17 Device or resource busy when calling Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Jul 13, 2017
1 parent 06292e2 commit 14c5642
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 14c5642

Please sign in to comment.