Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpMMSysAudio::GetLineId
ISpMMSysAudio::GetLineId retrieves the current line identifier associated with the multimedia device. Mixer lines are not supported for output devices.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetLineId(</strong> <strong> UINT</strong> *<em>puLineId</em> <strong>);</strong> </pre>
Parameters
- puLineId
[out] Address of the structure that receives the line identifier information.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_NOTIMPL | Not implemented for output devices. |
E_POINTER | puLineId is invalid. |
SPERR_NOT_FOUND | The audio device must have been created from a token. |
FAILED(hr) | Appropriate error message. |
Remarks
The Speech Platform will automatically attempt to identify the microphone line on the input device. If the Speech Platform cannot automatically detect the correct microphone line, no error will be detected or returned.