const classafFancomSapi::SpeechRuleAttributes
sys::Obj afFancom::Flag afFancomSapi::SpeechRuleAttributes
Lists the possible attributes of a grammar rule.
http://msdn.microsoft.com/en-us/library/ee125210%28v=vs.85%29.aspx
- None
const static SpeechRuleAttributes None := SpeechRuleAttributes.<ctor>(0, "None")
- SRADefaultToActive
const static SpeechRuleAttributes SRADefaultToActive := ...
Specifies that the rule is defined as a top-level rule that is activated by default. This can be set using the TOPLEVEL="ACTIVE" attribute-value pair in the Speech Text Grammar Format.
Value is 2 (0x2)
- SRADynamic
const static SpeechRuleAttributes SRADynamic := ...
Specifies the rule is dynamic (can be changed programmatically through the ISpGrammarBuilder interface). Note that the CFG must be loaded with the SPLO_DYNAMIC flag to enable changes at run time.
Value is 32 (0x20)
- SRAExport
const static SpeechRuleAttributes SRAExport := ...
Specifies the rule is exported and hence can be referred to by a rule in another grammar. This can be set using the
EXPORT="YES"
attribute-value pair in the Speech Text Grammar Format.Value is 4 (0x4)
- SRAImport
const static SpeechRuleAttributes SRAImport := ...
Specifies the rule is imported from another grammar and is therefore not defined in this grammar.
Value is 8 (0x8)
- SRAInterpreter
const static SpeechRuleAttributes SRAInterpreter := ...
Specifies the rule has an interpreter (custom C/C++ code implementing the ISpCFGInterpreter interface) associated with it.
Value is 16 (0x10)
- SRARoot
const static SpeechRuleAttributes SRARoot := ...
Specifies whether this is the root rule in the grammar. This is only meaningful for SRGS grammars.
Value is 64 (0x40)
- SRATopLevel
const static SpeechRuleAttributes SRATopLevel := ...
Specifies that the rule is defined as a top-level rule. Top-level rules are the entry points into the grammar and can be activated or deactivated programmatically. Set a rule as top-level by using the TOPLEVEL attribute in the Speech Text Grammar Format.
Value is 1 (0x1)
- make
new make(|This? f := null)
- makeFromDefinition
- makeFromVariant
new makeFromVariant(Variant variant)