See ev3dev/ev3dev#1081
The problem is that Sound.speak() returns espeak instead of play here:
|
def speak(text, espeak_opts='-a 200 -s 130'): |
|
""" |
|
Speak the given text aloud. |
|
""" |
|
with open(os.devnull, 'w') as n: |
|
cmd_line = '/usr/bin/espeak --stdout {0} "{1}"'.format(espeak_opts, text) |
|
espeak = Popen(shlex.split(cmd_line), stdout=PIPE) |
|
play = Popen(['/usr/bin/aplay', '-q'], stdin=espeak.stdout, stdout=n) |
|
return espeak |
See ev3dev/ev3dev#1081
The problem is that
Sound.speak()returnsespeakinstead ofplayhere:ev3dev-lang-python/ev3dev/core.py
Lines 3440 to 3448 in 55f57ad