Last active
May 16, 2018 04:38
-
-
Save radralph/aa4faf17130741a10140da1686d77c7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ask "Who would you like to call? Just say Joe or Jane", { | |
:choices => "Joe, Jane", | |
:mode => "speech", | |
:recognizer => "en-PH", | |
:minConfidence => 0.6, | |
:onChoice => lambda { |event| say "You said" + event.value}, | |
:onBadChoice => lambda { |event| say "I'm sorry, I didn't understand what you said."}, | |
:onTimeout => lambda { |event| say "I'm sorry, I didn't hear anything"}, | |
:onHangup => lambda { |event| log "Caller disconnected"} | |
} | |
hangup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment