Created
August 31, 2010 15:41
-
-
Save marks/559221 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
answer() | |
ask("What's your four digit pin?", [ | |
choices: "[4 DIGITS]", | |
mode: "voice", | |
recognizer: "en-us", // will recognize 'one two three four' | |
onChoice: {event -> say("You said $event.value")} | |
]) | |
answer() | |
ask("¿Cuál es su número de identificación?", [ | |
voice: "carmen", | |
choices: "[4 DIGITS]", | |
mode: "voice", | |
recognizer: "es-mx", //will recognize 'uno dos tres quatro' | |
onChoice: {event -> say("Usted ha dicho $event.value",[voice: "carmen"])} | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment