Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpRecognizer::GetInputObjectToken
ISpRecognizer::GetInputObjectToken retrieves the input token object for the stream currently being used.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetInputObjectToken(</strong><a runat="server" href="jj127672(v=msdn.10).md"><strong>ISpObjectToken</strong></a> **<em>ppToken</em> <strong>);</strong> </pre>
Parameters
- ppToken
[out] Gets filled in with the current input object token pointer.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
S_FALSE | Function completed successfully, but the input stream object has no object token associated with it. |
E_POINTER | ppToken is invalid or bad. |
SPERR_UNINITIALIZED | No audio input has yet been set with SetInput (InProc engine only). |
FAILED(hr) | Appropriate error message. |
Remarks
Applications will not normally need to use this method, but it can be used to find out specific details of the object token that was used to create the audio input stream.