Permalink
Browse files

+ Audio waits until the last audio has been finished

  • Loading branch information...
1 parent d0aafbe commit 1a3e42150757e18dfaa70315db61d56a60941bdd @floere committed Jun 8, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/james/outputs/audio.rb
@@ -15,7 +15,12 @@ def initialize options = {}
# Say the given text out loud.
#
+ # Waits for the last text to be finished
+ #
def say text
+ while @output.isSpeaking
+ sleep 0.1
+ end
@output.startSpeakingString text
end

0 comments on commit 1a3e421

Please sign in to comment.