Skip to content

Commit

Permalink
Increase waiting timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jakory committed Aug 25, 2017
1 parent 312312c commit b549a71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tega_speech_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def on_speaker_age_changed(self, val):
"""
self.speaker_age = val

def wait_for_speaking(self, timeout=3):
def wait_for_speaking(self, timeout=8):
""" Wait until we hear the robot start playing sound before going on to
process the next command and wait for the robot to be done playing
sound. We have to wait because when streaming audio through the audio
Expand All @@ -469,11 +469,12 @@ def wait_for_speaking(self, timeout=3):
counter += increment
time.sleep(increment)

print "Waited {} seconds".format(counter)
if counter >= timeout:
print "Warning: timed out waiting for robot to start playing " \
"sound! timeout: " + str(timeout) + ". Moving on..."

def wait_for_motion(self, timeout=3):
def wait_for_motion(self, timeout=8):
""" Wait until the robot has started playing an animation before going
on to wait for the robot to be done playing it (similar to waiting for
sound, above).
Expand Down

0 comments on commit b549a71

Please sign in to comment.