AudioConfig.FromMicrophoneInput Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應