SPMATCHINGMODE (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

SPMATCHINGMODE

New in SAPI 5.3

Enumerates the modes of subset matching.

typedef enum SPMATCHINGMODE
{
    AllWords,
    Subsequence,
    OrderedSubset,
    SubsequenceContentRequired,
    OrderedSubsetContentRequired
} SPMATCHINGMODE;

Elements

AllWords
Indicates that recognition of a subset string should take place if all words in the match string are recognized as a sequence in the audio input.
Subsequence
Indicates that recognition of a subset string should take place if one or more words in the match string are recognized as a sequence in the audio input, and the relative order of those recognized words is the same as in the subset phrase. A matched word may be a preposition or article.
OrderedSubset
Indicates that recognition of a subset string should take place if one or more words in the match string are recognized in the audio input, and the relative order of those recognized words is the same as in the subset phrase. A matched word may be a preposition or article.
SubsequenceContentRequired
Indicates that recognition of a subset string should take place if one or more words in the match string are recognized as a sequence in the audio input. A matched word may not be a preposition or article.
OrderedSubsetContentRequired
Indicates that recognition of a subset string should take place if one or more words in the match string are recognized as a sequence in the audio input. A matched word may not be a preposition or article.

Remarks

SPMATCHINGMODE is used by ISpGrammarBuilder2::AddTextSubset.