Permalink
Browse files

Mac OSX fix, use speak command if espeak not present

  • Loading branch information...
edmore committed May 24, 2012
1 parent db546a2 commit 8f6f4760bb2a773677c8d99c68f5342682bc32c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 peekaboo.rb
View
@@ -34,7 +34,7 @@
(length).times do
question_id = redis.lpop("questions")
text = redis.get("question:#{question_id}:text")
- system("espeak '#{text}'")
+ system("espeak '#{text}'") || system("speak '#{text}'")
sleep 5
end
[200, {'Content-type' => 'text/plain'},"End of Session"]

0 comments on commit 8f6f476

Please sign in to comment.