Share via


ISpRecognizer::SetRecoProfile (Windows CE 5.0)

Send Feedback

This method sets the recognition profile for the recognizer to use. A recognition profile represents a single user and training sessions on the system. The user can create, delete and set the current profile by using the Speech Control Panel.

SAPI always creates the SR engine using the current default profile. This method can be used to set the SR engine to use a different profile from the default.

This method should not be called when the SR engine is currently processing audio. Calling it with an active recognition engine can cause unexpected results, depending on how and when the SR engine reads the profile information.

HRESULT SetRecoProfile(ISpObjectToken* pToken);

Parameters

  • pToken
    [in] Pointer to an object implementing ISpObjectToken for the profile information.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
E_INVALIDARG One or more arguments are invalid.
FAILED(hr) Appropriate error message.

Requirements

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

See Also

ISpRecognizer | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.