OpenSpeech Browser

Getting Started
Architecture Description
Integration Guide

Copyright (c) 1998-2001 SpeechWorks International, Inc. All Rights Reserved.



VXIrecResult LoadGrammarString

(struct VXIrecInterface* pThis,
  const VXIMap* properties,
  const VXIchar* type,
  const VXIchar* gramDef,
  VXIrecGrammar** gram)

Load an inline grammar, typically non-blocking
Initiates grammar creation from a string inlined in the VoiceXML page. As with URIs, the resulting grammar must be activated before use and creation may be either synchronous or asynchronous. See LoadGrammarURI( ).

The supported grammar formats are determined by the implementor, but support for a minimal JSGF fragment of the following form is required:

"vocab_item {value} | vocab_item {value} | vocab_item"

This format is used by the VoiceXML interpreter for and in some other cases.

Parameters:
properties - [IN] Set of properties as defined above
type - [IN] MIME type of the grammar, one of the REC_MIME_[...] defines above or an implementation defined grammar type
gramDef - [IN] String containing the grammar definition
gram - [OUT] Handle to the new grammar
Returns:
VXIrec_RESULT_SUCCESS on success or one of the followings: VXIrec_RESULT_UNSUPPORTED_FORMAT, VXIrec_RESULT_UNSUPPORTED_LANGUAGE, VXIrec_RESULT_OUT_OF_MEMORY, VXIrec_RESULT_NO_RESOURCE, VXIrec_RESULT_FAILURE

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.