Define Grammar

This block defines the Automatic Speech Recognition (ASR) grammar used in the application.

Properties

Values

Description

Grammar

Text

A grammar can be specified in the following ways:

  • Refer to a built-in grammar.
  • Specify it by using XML.
  • Refer to the URI of a grammar stored on a web server.

Content-Id

Text

ID or name for the grammar by which it will be referenced, for example, [email protected].

Comment

Text

User description of the block in the script.

Routing

To include routing, add Success and Else cases, as show in the following example.

Note

In case of error (Else case), there is an additional delay of 5 seconds until the MRCP server responds to the request.

Backward compatibility

To maintain backward compatibility in existing scripts, this block treats the next block it is directly connected to as the Success case, as show in the following example.

Caution

If you delete the connection between the original DefineGrammar and Wait blocks, you must reconnect it through the Success case.