The com.avaya.ASRresource property and the related release_resources parameter can be used for controlling natural language speech recognition (NLSR) resources with VoiceXML applications.
Turning on and off NLSR resources
The com.avaya.ASRresource property controls advanced speech recognition (ASR) or NLSR resources. If NLSR is not needed in a VoiceXML application, the <property name="com.avaya.ASRresource" value="off"/> can be defined at the document level of the application or in the application root document.
If the first page of an application turns off the NLSR resource, it will be off for all subsequent pages until the value of com.avaya.ASRresource is set to "on".
Note:
Using this property can adversely affect performance. When NLSR is turned off and on, the VoiceXML interpreter is forced to re-evaluate all grammars in the document, which is computationally expensive. Use this feature infrequently. Additionally, VoiceXML documents that specify "voice" grammars but have NLSR turned off will pay a slight performance penalty.
Releasing NLSR resources for a TAS application
To use NLSR in a TAS application called by the VoiceXML <object> tag, you can add a new <param> to the <object> element. This <param> is named release_resources. An example of the parameter usage:
<param name="release_resources" value="true"/>
.
If release_resources is set to "true", NLSR resources are released before calling the TAS application. Then NLSR is re-allocated and grammars reloaded when the TAS application returns control to the VoiceXML application.
If release_resources is not present, or set to "false", the NLSR resource remains unaffected when the <object> tag is used.