Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ Audio waits until the last audio has been finished

  • Loading branch information...
commit 1a3e42150757e18dfaa70315db61d56a60941bdd 1 parent d0aafbe
@floere authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/james/outputs/audio.rb
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.