Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method sets the minimum amount of data that should be available before a data available event is set. The engine uses the method only if it calls ISpSREngineSite::Read with at least a certain amount of data available. The engine only calls this method from inside a call to its ISpSREngine::RecognizeStream method, but it can be called on any thread.
This method is used in conjunction with the Win32 event passed as a parameter to ISpSREngine::RecognizeStream. On non-real-time streams, for example, a stream read from a wave file, this event will always be set, as all the data in the file is available for reading. In this case, ISpSREngineSite::SetBufferNotifySize will return SP_UNSUPPORTED_ON_STREAM_INPUT.
HRESULT SetBufferNotifySize( ULONG cbSize);
Parameters
- cbSize
[in] Minimum amount of data, in bytes, that should be available before the data available event is set.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
SP_UNSUPPORTED_ON_STREAM_INPUT | Function call has no effect, as the stream is not real-time audio. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.
See Also
ISpSREngineSite | SAPI Interfaces
Send Feedback on this topic to the authors