Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpMMSysAudio::SetLineId
ISpMMSysAudio::SetLineId sets the 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 SetLineId(</strong> <strong> UINT</strong> <em>uLineId</em> <strong>);</strong> </pre>
Parameters
- uLineId
[in] Value specifying the line identifier information.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | The specified uLineId is not supported on the current device. |
SPERR_NOT_FOUND | The audio device must have been created from a token. |
E_NOTIMPL | Not implemented for output devices. |
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.