Share via


Note

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

Microsoft Speech Platform

ISpSerializeState::SetSerializedState

ISpSerializeState::SetSerializedState sets previously stored serialized data, allowing an application to reproduce a previous engine state.

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

Parameters

  • pbData
    Pointer to the buffer that holds the previously stored serialized data.
  • ulSize
    Size of the buffer, in bytes.
  • dwReserved
    Reserved for future use. Currently, the only valid value for this parameter is 0. Any other value results in an error.

Return Values

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