Skip to content

Commit 430dfd7

Browse files
ddemidovdlech
authored andcommitted
Return handle to aplay in Sound.espeak
See #461
1 parent d7e42f3 commit 430dfd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ev3dev/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3451,7 +3451,7 @@ def speak(text, espeak_opts='-a 200 -s 130'):
34513451
cmd_line = '/usr/bin/espeak --stdout {0} "{1}"'.format(espeak_opts, text)
34523452
espeak = Popen(shlex.split(cmd_line), stdout=PIPE)
34533453
play = Popen(['/usr/bin/aplay', '-q'], stdin=espeak.stdout, stdout=n)
3454-
return espeak
3454+
return play
34553455

34563456
@staticmethod
34573457
def _get_channel():

0 commit comments

Comments
 (0)