Unable to enable grammar file on offline web page

Last reviewed: 6/2/2007

PRB Article ID: P060704

The information in this article applies to:

  • SpeechKit 5


Enabling a local grammar file on an offline web page fails.


The web component is compiled script save to prevent file I/O outside the sandbox. Grammar files should be referred to by their URL (e.g., https://www.mydomain.com/mygrammar.xml).


Fixed in SpeechKit 5 build (Win32). You are able to specify the file path using a URL with file:/// (e.g., WChantSR1.DefineResource(CSRGrammarVocab, "file:///c:/mypath/mygrammar.xml").

Component Formats Impacted

All component formats.