Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpResourceManager::SetObject
ISpResourceManager::SetObject adds a COM object to the current service list. If an object is already set for the specified service, the ISpResourceManager::SetObject method will replace the current object with the new one. If pUnkObject is NULL, the current service object is removed.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetObject(</strong> <strong> REFGUID</strong> <em>guidServiceId</em>, <a runat="server" href="https://msdn.microsoft.com/en-us/library/ms680509(v=vs.85).aspx"><strong>IUnknown</strong></a> <em>*pUnkObject</em> <strong>);</strong> </pre>
Parameters
- guidServiceId
[in] The unique identifier of the service. - pUnkObject
[in] Address of the IUnknown interface of the object that is setting the service. Any existing service object is removed if this parameter is NULL.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | pUnkObject is bad or invalid. |
E_OUTOFMEMORY | Exceeded available memory. |
FAILED(hr) | Appropriate error message. |