Condividi tramite


AudioConfig.FromMicrophoneInput Method

Definition

Overloads

FromMicrophoneInput(String)

Creates an AudioConfig object that receives speech from a specific microphone on the computer. Added in 1.3.0

FromMicrophoneInput(String, AudioProcessingOptions)

Creates an AudioConfig object that receives speech from a specific microphone on the computer.

FromMicrophoneInput(String)

Creates an AudioConfig object that receives speech from a specific microphone on the computer. Added in 1.3.0

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromMicrophoneInput (string deviceName);
static member FromMicrophoneInput : string -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromMicrophoneInput (deviceName As String) As AudioConfig

Parameters

deviceName
String

Specifies the device name. To retrieve platform-specific microphone names, see How to: Select an audio input device with the Speech SDK.

Returns

An audio input configuration object set to provide speech from a particular microphone.

Applies to

FromMicrophoneInput(String, AudioProcessingOptions)

Creates an AudioConfig object that receives speech from a specific microphone on the computer.

public static Microsoft.CognitiveServices.Speech.Audio.AudioConfig FromMicrophoneInput (string deviceName, Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions audioProcessingOptions);
static member FromMicrophoneInput : string * Microsoft.CognitiveServices.Speech.Audio.AudioProcessingOptions -> Microsoft.CognitiveServices.Speech.Audio.AudioConfig
Public Shared Function FromMicrophoneInput (deviceName As String, audioProcessingOptions As AudioProcessingOptions) As AudioConfig

Parameters

deviceName
String

Specifies the device name. To retrieve platform-specific microphone names, see How to: Select an audio input device with the Speech SDK.

audioProcessingOptions
AudioProcessingOptions

Specifies the audio processing options.

Returns

An audio input configuration object set to provide speech from a particular microphone.

Applies to