Jump to: navigation, search

GVP Voice Project Templates

Composer provides the following Project templates for voice applications:

Sample: NBest Results Handling Project

This application demonstrates processing of NBest Results and confirming the user input.  For example, in a voice application there may be cases where the application must clarify a user response, such as:

  • A Speech Recognizer may return multiple results in the case of a noisy environment or indistinct pronunciation of words.
  • Grammar complexities may cause the user's input to be ambiguous.

NBest processing logic helps a voice application to clarify user responses.

  1. The Entry block enables NBest properties:
  • Instructs the Speech Recognizer to return multiple results by setting maxnbest to an integer greater than one.
  • Sets the confidencelevel decimal value (value values from 0.0 to 1.0) indicating the recognizer's confidence that the utterance matches what the user actually said.
  1. An Input block Obtains the results:
  • Instructs the user about the expected input details.
  • An external grammar file will be used by the ASR engine to process the user input.
  • Enables shadow variables.
  1. A Branching block uses the Input block’s shadow variable to check whether there are multiple results.
  2.  An Assign block assigns the obtained results to a variable:
  • Creating a custom VXML page to process the multiple results array:
  • Iterating over the Array to prompt the user about the results.
  • Asking the user to confirm the exact result using a simple inline grammar.
  1. A Subdialog block Invokes the NBest Processing VXML page:
  • ProcessNBestResults.vxml has been placed inside the src directory.
  • Passing the results (LastResult variable) as input for the VXML page.
  • Defining an Output variable to receive the return result from the VXML page.
  1.  A Prompt block announces the user confirmation result.
This page was last edited on July 2, 2013, at 13:07.
Comments or questions about this documentation? Contact us for support!