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
Symptoms
Enabling a local grammar file on an offline web page fails.
Cause
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).
Status
Fixed in SpeechKit 5 build 5.0.8.0 (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.