Skip to content

Commit e36473c

Browse files
committed
Workaround for #82, specify audio device ID to aplay
1 parent e54c852 commit e36473c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def say(self, what, locale='en'):
9191
if what and "$" in what:
9292
os.system ('omxplayer sounds/' + what[1:])
9393
elif what and len(what):
94-
os.system ('espeak --stdout -v' + locale + ' -p 90 -a 200 -s 150 -g 10 "' + what + '" 2>>/dev/null | aplay')
94+
os.system ('espeak --stdout -v' + locale + ' -p 90 -a 200 -s 150 -g 10 "' + what + '" 2>>/dev/null | aplay -D hw:1,0')
9595

9696
def normalize(self, snd_data):
9797
"Average the volume out"

0 commit comments

Comments
 (0)