Tropo is part of CiscoLearn More

utterance

The ask() method's return object contains the matched item from the grammar in the value. For grouped grammars, the value will contain the group, but the actual spoken or entered input will appear in this utterance property. For DTMF (keypad) and SMS entry, if the entry does not match the grammar at all, the utterance will still contain the entered value.

Examples

  var event = ask("Do you want to make an appointment? Say yes or no", {
   choices:"affirmative(yes, yeah, one), negative(no, nah, two)"
});
say("You said " + event.value);
log("They said " + event.utterance);
log("This means " + event.value);
  
event = ask "Do you want to make an appointment? Say yes or no", {
   :choices => "affirmative(yes, yeah, one), negative(no, nah, two)"}
say "You said " + event.value
log "They said " + event.utterance
log "This means " + event.value
<?php

$event = ask("Do you want to make an appointment? Say yes or no", array(
   "choices" => "affirmative(yes, yeah, one), negative(no, nah, two)"
));
say("You said" . $event->value);
_log("They said " . $event->utterance);
_log("This means " . $event->value);

?>
event = ask("Do you want to make an appointment? Say yes or no", {
   "choices":"affirmative(yes, yeah, one), negative(no, nah, two)"})
say("You said " + event.value)
log("They said " + event.utterance)
log("This means " + event.value)
event = ask("Do you want to make an appointment? Say yes or no", [
   choices: "affirmative(yes, yeah, one), negative(no, nah, two)"])
say("You said $event.value")
log("They said $event.utterance")
log("This means $event.utterance")