SRCHUNK

typedef struct {
DWORD dwChunkID;
DWORD dwChunkSize;
BYTE avInfo[dwChunkSize];
} SRCHUNK, * PSRCHUNK;

Defines an information chunk in a grammar.

dwChunkID

Type of information in the chunk. If the engine does not understand the information type, it skips the chunk. This member can be one of these values:

Value

Meaning

SRCK_LANGUAGE

A LANGUAGE structure. A grammar can have only one of these chunks. If the grammar does not have an SRCK_LANGUAGE chunk, it uses the current speech-recognition mode's default language.

SRCKCFG_EXPORTRULES

A list of SRCFGXRULE structures that specify the exported rules for a context-free grammar.

SRCKCFG_IMPORTRULES

A list of SRCFGIMPRULE structures that specify the imported rules for a context-free grammar.

SRCKCFG_LISTS

A list of SRCFGLIST structures that specify the run-time lists required by a context-free grammar.

SRCKCFG_RULES

A list of SRCFGRULE structures that specify the rules for a context-free grammar.

SRCKCFG_WORDS

A list of SRWORD structures that specify the words in a context-free grammar.

SRCKD_COMMON

A list of common words for a dictation grammar, stored as a sequential list of null-terminated word strings.

SRCKD_GROUP

A list of related words for a dictation grammar, stored as a sequential list of null-terminated word strings.

SRCKD_TOPIC

A topic keyword for a dictation grammar, stored as a single null-terminated string.

SRCKLD_GROUP

A list of related words that an engine will recognize with a limited-domain grammar.

SRCKLD_SAMPLE

Sample text for a limited-domain grammar, stored as a single null-terminated string.

SRCKLD_WORDS

A list of words that an engine will recognize with a limited-domain grammar.


dwChunkSize

Number of bytes used to store the information. This does not include the size of the dwChunkID and dwChunkSize members.

avInfo

Information buffer defined by the dwChunkID member. This must be DWORD-aligned. If the data does not fall on a DWORD boundary, add the number of bytes needed to end the buffer on a DWORD boundary without changing the dwChunkSize member.