ISpSREngineSite (Windows CE 5.0)

Send Feedback

This interface gets audio data, retrieves grammar information, sends events, and returns recognition information to SAPI. It is implemented by SAPI and is called by an SR engine. After SAPI creates the SR engine, the engine obtains a pointer to ISpSREngineSite when the ISpSREngine::SetSite is called.

When to Implement

Only SAPI implements this interface.

Methods

The following table shows the methods for the ISpSREngineSite interface.

Method Description
AddEvent Adds an event to the SR engine site.
DataAvailable Gets the amount of data that can be read without blocking.
GetContextMaxAlternates Gets the maximum number of alternates that should be generated for the specified recognition context.
GetMaxAlternates Gets the maximum number of alternates that should be generated for the specified rule.
GetResource Gets a named resource from a grammar.
GetRuleInfo Gets information about a CFG rule.
GetStateInfo Gets information on the transitions from a CFG state.
GetTransitionProperty Gets property information for a transition in a grammar.
GetWordInfo Gets information about a CFG word.
IsAlternate Determines whether one rule is a valid alternate of another.
ParseFromTransitions Produces a phrase builder result from a list of transitions.
Read Reads audio data from the input stream.
Recognition Retrieves a recognition result (final, partial, or false) for SAPI.
SetBufferNotifySize Sets the amount of data to be available before data available event is set.
SetRuleClientContext Sets client context on a CFG rule.
SetWordClientContext Sets a client context on a CFG word.
Synchronize Informs SAPI that the engine is ready to process changes in its grammars.
UpdateRecoPos Updates the current position of the recognizer in the stream.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.

See Also

SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.