Skip to content

Instantly share code, notes, and snippets.

@zlu
Created March 26, 2010 22:03
Show Gist options
  • Save zlu/345460 to your computer and use it in GitHub Desktop.
Save zlu/345460 to your computer and use it in GitHub Desktop.
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