<resource>

Defines a resource in the resource section of the session.xml file to be preloaded for the application.

Attributes

The <resource> element has one required attribute.

Name

Data type

Default

type

(grammar | language | voice | acoustic_model | dictionaries | rulesets |activeprompt_dbs)

required

type

The type of the resource. The types allowed depend on the parent of the <resource> element, since this determines which Voice Platform component is instructed to load it:

Section

Types allowed

<speechrecog>

acoustic_model, grammar, language

<speechsynth>

activeprompt_dba, dictionaries, language, rulesets, voice

Children

Parents

Sample code

<resourcehints>
  <speechsynth>
    <resource type="language"><param><value>en-US</value></param>
    </resource>
  </speechsynth>
  <speechrecog>
    <resource type="grammar">
      <param><value>mybiggrammar.gram</value></param>
    </resource>
  </speechrecog>