Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- call "9273953465", {:callerID => 'sip:21588260@sip.tropo.net'}
- ask "Who would you like to call? Just say Joe or John", {
- :choices => "Joe, John",
- :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
Add Comment
Please, Sign In to add comment