Created
March 26, 2010 22:03
-
-
Save zlu/345460 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 | |
say 'Bonjour', :voice => 'florence' | |
result = ask( "Si vous êtes hycinthe, disons hycinthe ou appuyez sur 1, Si vous êtes vanessa, disons vanessa ou appuyez sur 2", { :recognizer => 'fr-fr', | |
:voice => 'florence', | |
:repeat => 3, | |
:choices => "hycinthe (1, hycinthe), vanessa (2, vanessa)" }) | |
log '++++++++++++++++++++++++++++++++++++result.name: ' + result.name | |
log '++++++++++++++++++++++++++++++++++++result.value: ' + result.value | |
if (result.name=='choice') | |
say( "vous avez dit hyacinthe", :voice => 'florence') if (result.value=="hycinthe") | |
say( "vous avez dit vanessa princesse Meheut", :voice => 'florence') if (result.value=="vanessa") | |
end | |
hangup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment