ISpRecognizerLite::Playback

Send Feedback

This method plays back the associated voice sample to the user.

HRESULT  Playback (
  SPRECOGNITIONMETHOD eRM,
  SPTYPEHEADER* psth,
  IUnknown* pUnk
);

Parameters

  • eRM
    [in] Identifies which recognition method should be used.

  • psth
    [out][in] Pointer to information which identifies the pattern to be played back.

    Recognition method SPTYPEHEADER type
    SPRM_VOICETAG SPT_DWORD
  • pUnk
    [in] Pointer to a client callback interface. This parameter is currently NULL and ignored.

Return Values

Value Description
S_OK Success
E_ABORT The operation was cancelled by a call to the CancelProcessing function.
E_ACCESSDENIED Unable to access stored training samples.
E_INVALIDARG The operation failed because there were one or more invalid arguments.
SPERR_DEVICE_BUSY The wave device was busy.
SPERR_ENGINE_BUSY The operation failed because the engine was busy servicing another request.
SPERR_NO_WORD_PRONUNCIATION The required training has not been completed.
SPERR_NOT_FOUND The tag or key identifier that was passed in was not valid.
SPERR_SR_ENGINE_EXCEPTION General exception from the engine.
SPERR_UNINITIALIZED The operation failed because the engine was not properly initialized.

Otherwise, it returns an appropriate failure code from the return code list.

Requirements

Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: itspeech.h

See Also

ISpRecognizerLite

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.