const classafFancomSapi::SpeechRuleAttributes

sys::Obj
  afFancom::Flag
    afFancomSapi::SpeechRuleAttributes

@Serializable

Lists the possible attributes of a grammar rule.

http://msdn.microsoft.com/en-us/library/ee125210%28v=vs.85%29.aspx

None

Source

const static SpeechRuleAttributes None := SpeechRuleAttributes.<ctor>(0, "None")

SRADefaultToActive

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

new make(|This? f := null)

makeFromDefinition

Source

new makeFromDefinition(Int flag, Str? name := null)

makeFromVariant

Source

new makeFromVariant(Variant variant)