Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

ISpSerializeState::GetSerializedState

ISpSerializeState::GetSerializedState gets serialized data that represents the speech recognition engine's internal state. This allows an application to store and later restore the engine state for subsequent recognition of speech data from the same source.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetSerializedState(</strong> <strong> BYTE</strong> **<em>ppbData</em>, <strong> ULONG</strong> *<em>pulSize</em>, <strong> DWORD</strong> <em>dwReserved</em> <strong>);</strong> </pre>

Parameters

  • ppbData
    Pointer to the buffer that is to hold the serialized data.
  • pulSize
    Size of the buffer, in bytes.
  • dwReserved
    Reserved for future use.

Return Values

Value Description
S_OK Function completed successfully.
E_INVALIDARG A parameter is invalid.
FAILED(hr) Appropriate error message.